From a789108926f8b8182d6737abc444ca8d2c2a191f Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 5 Feb 2019 01:04:41 +0100 Subject: [PATCH] test: add -short flag that only tests on the host --- main_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main_test.go b/main_test.go index 3afb45d8..25628550 100644 --- a/main_test.go +++ b/main_test.go @@ -49,6 +49,10 @@ func TestCompiler(t *testing.T) { }) } + if testing.Short() { + return + } + t.Log("running tests on the qemu target...") for _, path := range matches { t.Run(path, func(t *testing.T) {