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

[CONTINT-258] Fix the test cache deactivation in inv new-e2e-tests.run #21093

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tasks/new_e2e_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ def run(
test_run_arg = f"-run {test_run_name}"

cmd = f'gotestsum --format {gotestsum_format} '
cmd += '{junit_file_flag} --packages="{packages}" -- -ldflags="-X {REPO_PATH}/test/new-e2e/tests/containers.GitCommit={commit}" {verbose} -mod={go_mod} -vet=off -timeout {timeout} -tags {go_build_tags} {nocache} {run} {skip} {coverage_opt} {test_run_arg} -args {osversion} {platform} {arch} {cws_supported_osversion} {keep_stacks}'
L3n41c marked this conversation as resolved.
Show resolved Hide resolved
cmd += '{junit_file_flag} --packages="{packages}" -- -ldflags="-X {REPO_PATH}/test/new-e2e/tests/containers.GitCommit={commit}" {verbose} -mod={go_mod} -vet=off -timeout {timeout} {tags} {nocache} {run} {skip} {coverage_opt} {test_run_arg} -args {osversion} {platform} {arch} {cws_supported_osversion} {keep_stacks}'

args = {
"go_mod": "mod",
"timeout": "4h",
"verbose": '-v' if verbose else '',
"tags": f"-build.tags {','.join(tags)}" if tags else '',
L3n41c marked this conversation as resolved.
Show resolved Hide resolved
"nocache": '-count=1' if not cache else '',
"REPO_PATH": REPO_PATH,
"commit": get_git_commit(),
Expand Down