hs-test: small improvements

Type: test

Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: Ifa56da632b139acd5e743c3076c24b5b55388924
This commit is contained in:
Filip Tehlar
2022-12-21 14:40:35 +01:00
committed by Florin Coras
parent 24adebad27
commit bb98aac422
2 changed files with 12 additions and 23 deletions

View File

@@ -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 {