From 62a96d0144000d8f08aa522e29019c7102ae15d5 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 5 Nov 2018 13:59:19 -0500 Subject: [PATCH] Disable -eu on venv activation Signed-off-by: Jonathan Rajotte --- scripts/system-tests/run-baremetal-benchmarks.sh | 4 ++++ scripts/system-tests/run-baremetal-tests.sh | 5 +++++ scripts/system-tests/run-kvm-fuzzing-tests.sh | 4 ++++ scripts/system-tests/run-kvm-tests.sh | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/scripts/system-tests/run-baremetal-benchmarks.sh b/scripts/system-tests/run-baremetal-benchmarks.sh index 7106afd..5f656af 100644 --- a/scripts/system-tests/run-baremetal-benchmarks.sh +++ b/scripts/system-tests/run-baremetal-benchmarks.sh @@ -19,7 +19,9 @@ echo 'We can now launch the lava job using those artefacts' venv=$(mktemp -d) virtualenv -p python3 "$venv" +set +eu source "${venv}/bin/activate" +set -eu pip install pyyaml python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \ @@ -37,7 +39,9 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \ -km "$S3_URL_LINUX_MODULES" \ -lm "$S3_URL_LTTNG_MODULES" \ -tc "$LTTNG_TOOLS_COMMIT_ID" +set +eu deactivate +set -eu rm -rf "$venv" # Create a results folder for this job diff --git a/scripts/system-tests/run-baremetal-tests.sh b/scripts/system-tests/run-baremetal-tests.sh index 3d60872..a5323e4 100644 --- a/scripts/system-tests/run-baremetal-tests.sh +++ b/scripts/system-tests/run-baremetal-tests.sh @@ -19,7 +19,10 @@ echo 'We can now launch the lava job using those artefacts' venv=$(mktemp -d) virtualenv -p python3 "$venv" + +set +eu source "${venv}/bin/activate" +set -eu pip install pyyaml python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \ @@ -39,5 +42,7 @@ python -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" +set +eu deactivate +set -eu rm -rf "$venv" diff --git a/scripts/system-tests/run-kvm-fuzzing-tests.sh b/scripts/system-tests/run-kvm-fuzzing-tests.sh index 13e5acf..a9e1aed 100644 --- a/scripts/system-tests/run-kvm-fuzzing-tests.sh +++ b/scripts/system-tests/run-kvm-fuzzing-tests.sh @@ -19,7 +19,9 @@ echo 'We can now launch the lava job using those artefacts' venv=$(mktemp -d) virtualenv -p python3 "$venv" +set +eu source "${venv}/bin/activate" +set -eu pip install pyyaml python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \ @@ -39,5 +41,7 @@ python -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" \ +set +eu deactivate +set -eu rm -rf "$venv" diff --git a/scripts/system-tests/run-kvm-tests.sh b/scripts/system-tests/run-kvm-tests.sh index 57f462d..622cfce 100644 --- a/scripts/system-tests/run-kvm-tests.sh +++ b/scripts/system-tests/run-kvm-tests.sh @@ -19,7 +19,9 @@ echo 'We can now launch the lava job using those artefacts' venv=$(mktemp -d) virtualenv -p python3 "$venv" +set +eu source "${venv}/bin/activate" +set -eu pip install pyyaml python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava-submit.py \ @@ -39,5 +41,7 @@ python -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" +set +eu deactivate +set -eu rm -rf "$venv" -- 2.34.1