From 1f88a0abe817c09eb21b3e6cc1a12ac53b23e040 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Fri, 8 Apr 2022 09:25:31 +0200 Subject: [PATCH] Skip integration test on regular test run --- cmd/csaf_checker/main_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/csaf_checker/main_test.go b/cmd/csaf_checker/main_test.go index 0363264..1a77e93 100644 --- a/cmd/csaf_checker/main_test.go +++ b/cmd/csaf_checker/main_test.go @@ -17,5 +17,8 @@ func TestMain(t *testing.T) { } } + if endOfTestParams == 0 { + t.Skip("skipping integration test, no `--` parameter found") + } realMain(os.Args[endOfTestParams+1:]) }