[openqa-tests/sam/upstream-container] utils/start_job.sh: Allow overriding CASEDIR
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [openqa-tests/sam/upstream-container] utils/start_job.sh: Allow overriding CASEDIR
- Date: Fri, 7 Oct 2022 09:48:06 +0000 (UTC)
commit 998186c148ba4dfcfe51e7f3623fbfc1622fa6ab
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Fri Oct 7 11:47:43 2022 +0200
utils/start_job.sh: Allow overriding CASEDIR
This is necessary to run the tests from gnome-build-meta repo.
utils/start_job.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/utils/start_job.sh b/utils/start_job.sh
index 03cd76b..12d3db7 100755
--- a/utils/start_job.sh
+++ b/utils/start_job.sh
@@ -4,16 +4,22 @@
#
# On success, write the job ID returned by server to stdout.
-set -eu
+set -e
worker_class=$1
version=$2
+if [ -n "$3" ]; then
+ casedir="$3"
+else
+ casedir="$(pwd)"
+fi
+
openqa-cli api --apikey $OPENQA_API_KEY --apisecret $OPENQA_API_SECRET \
--host $OPENQA_HOST \
-X POST isos \
ARCH=x86_64 \
- CASEDIR=$(pwd) \
+ CASEDIR="$casedir" \
DISTRI=gnomeos \
FLAVOR=iso \
ISO=installer.iso \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]