projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use venv for submit script
[lttng-ci.git]
/
scripts
/
system-tests
/
run-baremetal-tests.sh
diff --git
a/scripts/system-tests/run-baremetal-tests.sh
b/scripts/system-tests/run-baremetal-tests.sh
index fe60bc4952f3c40caf7c2ca77cf46fecf51f6a4d..3d60872c42a07cd1338cbc522a57f3e48e6fdd3d 100644
(file)
--- a/
scripts/system-tests/run-baremetal-tests.sh
+++ b/
scripts/system-tests/run-baremetal-tests.sh
@@
-16,7
+16,13
@@
echo 'At this point, we built the modules and kernel if we needed to.'
echo 'We can now launch the lava job using those artefacts'
echo 'At this point, we built the modules and kernel if we needed to.'
echo 'We can now launch the lava job using those artefacts'
-python3 -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \
+
+venv=$(mktemp -d)
+virtualenv -p python3 "$venv"
+source "${venv}/bin/activate"
+pip install pyyaml
+
+python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \
-t baremetal-tests \
-j "$JOB_NAME" \
-k "$STORAGE_KERNEL_IMAGE" \
-t baremetal-tests \
-j "$JOB_NAME" \
-k "$STORAGE_KERNEL_IMAGE" \
@@
-25,7
+31,7
@@
python3 -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \
-tc "$LTTNG_TOOLS_COMMIT_ID" \
-uc "$LTTNG_UST_COMMIT_ID"
-tc "$LTTNG_TOOLS_COMMIT_ID" \
-uc "$LTTNG_UST_COMMIT_ID"
-python
3
-u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
+python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
-t baremetal-tests \
-j "$JOB_NAME" \
-k "$S3_URL_KERNEL_IMAGE" \
-t baremetal-tests \
-j "$JOB_NAME" \
-k "$S3_URL_KERNEL_IMAGE" \
@@
-33,3
+39,5
@@
python3 -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
-lm "$S3_URL_LTTNG_MODULES" \
-tc "$LTTNG_TOOLS_COMMIT_ID" \
-uc "$LTTNG_UST_COMMIT_ID"
-lm "$S3_URL_LTTNG_MODULES" \
-tc "$LTTNG_TOOLS_COMMIT_ID" \
-uc "$LTTNG_UST_COMMIT_ID"
+deactivate
+rm -rf "$venv"
This page took
0.023387 seconds
and
4
git commands to generate.