hs-test: small improvements
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Ifa56da632b139acd5e743c3076c24b5b55388924
This commit is contained in:

committed by
Florin Coras

parent
24adebad27
commit
bb98aac422
@@ -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 {
|
||||
|
Reference in New Issue
Block a user