Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments not recognized #75

Closed
knabben opened this issue Nov 17, 2021 · 1 comment
Closed

Arguments not recognized #75

knabben opened this issue Nov 17, 2021 · 1 comment

Comments

@knabben
Copy link
Member

knabben commented Nov 17, 2021

We are using E2E 0.0.4 on https://github.com/K8sbykeshed/k8s-service-lb-validator

I'm using go test ./... -args --skip-labels="type=cluster_ip" to skip tests with this label, but receiving the following error:

{"level":"info","ts":1637161494.262519,"caller":"matrix/manager.go:227","msg":"Server is ready","case":"81->80,TCP"}
flag provided but not defined: -skip-labels
Usage of /tmp/go-build1250012764/b001/k8s-service-lb-validator.test:
  -test.bench regexp
    	run only benchmarks matching regexp
  -test.benchmem
    	print memory allocations for benchmarks
  -test.benchtime d
    	run each benchmark for duration d (default 1s)
  -test.blockprofile file
    	write a goroutine blocking profile to file
  -test.blockprofilerate rate
    	set blocking profile rate (see runtime.SetBlockProfileRate) (default 1)
  -test.count n
    	run tests and benchmarks n times (default 1)
  -test.coverprofile file
    	write a coverage profile to file
  -test.cpu list

Wondering if some wrong bootstrap in our codebase.

@knabben
Copy link
Member Author

knabben commented Nov 18, 2021

missed the correct configuration from the example: cfg, err := envconf.NewFromFlags(), this should fix the issue

@knabben knabben closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant