Skip to content

Commit 69a0ca9

Browse files
committed
[IDX-2606] Pass params as named env variables instead of command line args. This makes the code more self-explanatory and protects against mistakes in the future when adding/removing params could cause using wrong param. See merge request dfinity-lab/public/ic!12604
2 parents ef894d5 + cadd76f commit 69a0ca9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

scalability/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,15 @@ sh_test(
272272
name = "run-e2e-scalability-tests",
273273
timeout = "long",
274274
srcs = ["common/tests/e2e-scalability-tests.sh"],
275-
args = [
276-
"$(rootpath :e2e-scalability-tests)",
277-
"$(rootpath //ic-os/guestos/envs/dev:version.txt)",
278-
],
279275
data = [
280276
":e2e-scalability-tests",
281277
"//ic-os:scripts/build-bootstrap-config-image.sh",
282278
"//ic-os/guestos/envs/dev:version.txt",
283279
],
280+
env = {
281+
"E2E_TEST_BIN": "$(rootpath :e2e-scalability-tests)",
282+
"IC_OS_VERSION_FILE": "$(rootpath //ic-os/guestos/envs/dev:version.txt)",
283+
},
284284
env_inherit = [
285285
"CI_PROJECT_DIR",
286286
"HOME",

scalability/common/tests/e2e-scalability-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ if [ -f "${STATUSFILE}" ]; then
1515
done <"$STATUSFILE"
1616
fi
1717

18-
exec $1 --ic_os_version $(cat $2) \
18+
exec "${E2E_TEST_BIN}" \
19+
--ic_os_version "$(cat "${IC_OS_VERSION_FILE}")" \
1920
--artifacts_path "scalability/artifacts/release/" \
2021
--nns_canisters "scalability/artifacts/canisters/" \
2122
--install_nns_bin "scalability/artifacts/release/ic-nns-init" \

0 commit comments

Comments
 (0)