[openqa-tests/sam/upstream-container] Try to set MACHINE so machine in `utils/setup_worker.sh` is honoured




commit 9f4343540bb74b2087eccb3a343275cba7761b6e
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Thu Oct 6 15:31:33 2022 +0200

    Try to set MACHINE so machine in `utils/setup_worker.sh` is honoured
    
    There exists a `qemu_x86_64` machine defined in the OpenQA web UI. I
    prefer to ignore this and have the machine config committed to Git
    along with the tests. Hopefully setting `MACHINE` explicitly will
    achieve that.

 utils/start_job.sh | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/utils/start_job.sh b/utils/start_job.sh
index 5034a5f..93d7600 100755
--- a/utils/start_job.sh
+++ b/utils/start_job.sh
@@ -8,6 +8,7 @@ set -eu
 
 worker_class=$1
 version=$2
+machine=qemu_x86_64
 
 openqa-cli api --apikey $OPENQA_API_KEY --apisecret $OPENQA_API_SECRET \
   --host $OPENQA_HOST \
@@ -17,6 +18,7 @@ openqa-cli api --apikey $OPENQA_API_KEY --apisecret $OPENQA_API_SECRET \
   VERSION=$version \
   FLAVOR=iso \
   ARCH=x86_64 \
+  MACHINE=gitlab-runner-$machine-$worker_class \
   WORKER_CLASS=$worker_class \
   CASEDIR=$(pwd) \
   NEEDLES_DIR=$OPENQA_NEEDLES_GIT#$OPENQA_NEEDLES_BRANCH | tee --append openqa.log | jq -e .ids[0]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]