зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1148995 - Display error message returned by testdroid endpoint r=me a=taskcluster-only
--HG-- extra : rebase_source : c8c06c61a4f49e0325b2b54f24a2de555a156769
This commit is contained in:
Родитель
23d4fe1564
Коммит
e84806faf5
|
@ -1 +1 @@
|
|||
0.0.2
|
||||
0.0.3
|
||||
|
|
|
@ -5,9 +5,16 @@ python /home/worker/bin/validate_task.py
|
|||
|
||||
echo "Retrieving device"
|
||||
res=`curl --request POST -H "Content-Type: application/json" -d "$DEVICE_CAPABILITIES" http://$CLOUD_HOST/device`
|
||||
error=`echo $res | jq .error`
|
||||
|
||||
if [ "$error" != "null" ]; then
|
||||
echo $error
|
||||
exit -1
|
||||
fi
|
||||
|
||||
status=`echo $res | jq .session`
|
||||
|
||||
if [[ $status == 'null' ]]; then
|
||||
if [ "$status" == "null" ]; then
|
||||
echo "Session could not be created with a device."
|
||||
exit -1
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче