[gnome-build-meta/sthursfield/james/openqa-master] openqa: Fix broken script
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/sthursfield/james/openqa-master] openqa: Fix broken script
- Date: Mon, 9 Aug 2021 13:51:32 +0000 (UTC)
commit 3c0d32b89bd1c5f5b9dd2a8e3d92456be74526fc
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]