diff --git a/bin/pre-commit.sh b/bin/pre-commit.sh index c81e9ca08..fc519568e 100755 --- a/bin/pre-commit.sh +++ b/bin/pre-commit.sh @@ -19,7 +19,12 @@ go vet -all ./... rc=$((rc || $?)) echo "Running go test" -go test -v ./... +go list ./... | grep -vF pkg/framework/test | xargs go test -v +rc=$((rc || $?)) + +echo "Running test framework tests" +./pkg/framework/test/scripts/download-binaries.sh \ + && ./pkg/framework/test/scripts/run-tests.sh rc=$((rc || $?)) exit $rc diff --git a/pkg/framework/test/democli/cmd/root.go b/pkg/framework/test/democli/cmd/root.go index bb906bce0..db95f7a8a 100644 --- a/pkg/framework/test/democli/cmd/root.go +++ b/pkg/framework/test/democli/cmd/root.go @@ -46,7 +46,7 @@ func Execute() { } } -func init() { +func init() { cobra.OnInitialize(initConfig) // Here you will define your flags and configuration settings.