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

e2e: replace -run with -test.run for compatibility with e2e test executable #1807

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

parikshithb
Copy link
Member

This change replaces the -run option with -test.run when executing compiled test binaries in e2e.doc.
When using go test directly, the -run flag is supported ex: go test -run Test. However, when tests are compiled into an executable using go test -c (ramen-e2e), the executable only recognizes flags prefixed with -test., such as -test.run.
Using -test.run ensures compatibility in both scenarios, whether running tests via go test or executing a compiled test binary.
ex: go test -timeout 0 -v -test.run //appset-deploy-rbd

executable

replace -run with -test.run, the -run flag is supported when using 'go test' directly, but compiled test executables (via 'go test -c') require the -test.run flag.

Signed-off-by: Parikshith <[email protected]>
@parikshithb parikshithb requested a review from nirs February 5, 2025 10:43
@nirs nirs merged commit aa9dce2 into RamenDR:main Feb 5, 2025
22 of 23 checks passed
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

Successfully merging this pull request may close these issues.

2 participants