Skip to content

Commit

Permalink
Update invoke task for agent version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinFairise2 committed Nov 22, 2023
1 parent 397cfda commit 40990ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/new_e2e_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def run(
platform="",
arch="",
flavor="",
major_version="",
cws_supported_osversion="",
keep_stacks=False,
cache=False,
Expand Down Expand Up @@ -92,7 +93,7 @@ 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} {flavor} {cws_supported_osversion} {keep_stacks}'
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} {major_version} {arch} {flavor} {cws_supported_osversion} {keep_stacks}'

args = {
"go_mod": "mod",
Expand All @@ -109,6 +110,7 @@ def run(
"platform": f"-platform {platform}" if platform else '',
"arch": f"-arch {arch}" if arch else '',
"flavor": f"-flavor {flavor}" if flavor else '',
"major_version": f"-major-version {major_version}" if major_version else '',
"cws_supported_osversion": f"-cws-supported-osversion {cws_supported_osversion}"
if cws_supported_osversion
else '',
Expand Down

0 comments on commit 40990ef

Please sign in to comment.