X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fhs-test%2Fframework_test.go;h=cd43cfe4612ce890fa792a5a555356f656f2f4e6;hb=bb98aac4223f506ec18109f9836daa6ef0d61180;hp=33bc1f35011c3da0cdf1a07f53755f1c612894f6;hpb=24adebad278b88b26bdae5615b6dea94dba7b757;p=vpp.git diff --git a/extras/hs-test/framework_test.go b/extras/hs-test/framework_test.go index 33bc1f35011..cd43cfe4612 100755 --- a/extras/hs-test/framework_test.go +++ b/extras/hs-test/framework_test.go @@ -1,9 +1,9 @@ package main import ( - "testing" "io/ioutil" "os" + "testing" "github.com/edwarnicke/exechelper" "github.com/stretchr/testify/assert" @@ -12,17 +12,11 @@ import ( ) func IsPersistent() bool { - if os.Getenv("HST_PERSIST") == "1" { - return true - } - return false + return os.Getenv("HST_PERSIST") == "1" } func IsVerbose() bool { - if os.Getenv("HST_VERBOSE") == "1" { - return true - } - return false + return os.Getenv("HST_VERBOSE") == "1" } type HstSuite struct {