[gnome-build-meta/sthursfield/james/openqa-master: 21/22] openqa: Fix broken script




commit a1057dc6b2359d201118bcc97328da0fe8a014f6
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Aug 9 15:18:09 2021 +0200

    openqa: Fix broken script

 openqa/utils/wait_for_job.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/openqa/utils/wait_for_job.sh b/openqa/utils/wait_for_job.sh
index e96e8022..d4046e3f 100755
--- a/openqa/utils/wait_for_job.sh
+++ b/openqa/utils/wait_for_job.sh
@@ -8,10 +8,12 @@ set -eu
 
 job_id=$1
 
-alias job_check="openqa-cli api --apikey $OPENQA_API_KEY \
-  --apisecret $OPENQA_API_KEY \
-  --host $OPENQA_HOST \
-  jobs/${job_id}"
+job_check() {
+    openqa-cli api --apikey $OPENQA_API_KEY \
+        --apisecret $OPENQA_API_KEY \
+        --host $OPENQA_HOST \
+        jobs/${job_id}
+}
 
 state=$(job_check | jq .job.state)
 while [ "$state" != "\"done\"" ]; do sleep 10 && state=$(job_check | jq .job.state); done


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