mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 14:19:51 +08:00
Don't fail the test script when the module is in the "done" state
This commit is contained in:
@@ -20,7 +20,7 @@ echo "Working with module build $build_id"
|
||||
fedpkg-stage module-build-watch $build_id
|
||||
url=https://mbs.stg.fedoraproject.org/module-build-service/1/module-builds/$build_id
|
||||
state=$(curl $url | jq '.state')
|
||||
if [ "$state" -ne "5" ]; then
|
||||
if [ "$state" -ne "3" ] && [ "$state" -ne "5" ]; then
|
||||
echo "initial module build state for #$build_id was $state"; exit 1;
|
||||
fi
|
||||
baseline_task_id_1=$(curl $url | jq '.tasks.rpms."perl-List-Compare".task_id')
|
||||
@@ -40,7 +40,7 @@ fedpkg-stage module-build-watch $build_id
|
||||
|
||||
url=https://mbs.stg.fedoraproject.org/module-build-service/1/module-builds/$build_id
|
||||
state=$(curl $url | jq '.state')
|
||||
if [ "$state" -ne "5" ]; then
|
||||
if [ "$state" -ne "3" ] && [ "$state" -ne "5" ]; then
|
||||
echo "module build state for #$build_id was $state"; exit 1;
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user