ci: fix ios test run (#1248)
This commit is contained in:
Родитель
968f5c5e19
Коммит
e9f8c4566e
|
@ -41,8 +41,17 @@ mkdir -p $UNO_UITEST_SCREENSHOT_PATH/_logs
|
|||
## Pre-install the application to avoid https://github.com/microsoft/appcenter/issues/2389
|
||||
##
|
||||
|
||||
export UITEST_IOSDEVICE_ID=`xcrun simctl list -j | jq -r --arg sim "$UNO_UITEST_SIMULATOR_VERSION" --arg name "$UNO_UITEST_SIMULATOR_NAME" '.devices[$sim] | .[] | select(.name==$name) | .udid'`
|
||||
export UITEST_IOSDEVICE_DATA_PATH=`xcrun simctl list -j | jq -r --arg sim "$UNO_UITEST_SIMULATOR_VERSION" --arg name "$UNO_UITEST_SIMULATOR_NAME" '.devices[$sim] | .[] | select(.name==$name) | .dataPath'`
|
||||
while true; do
|
||||
export UITEST_IOSDEVICE_ID=`xcrun simctl list -j | jq -r --arg sim "$UNO_UITEST_SIMULATOR_VERSION" --arg name "$UNO_UITEST_SIMULATOR_NAME" '.devices[$sim] | .[] | select(.name==$name) | .udid'`
|
||||
export UITEST_IOSDEVICE_DATA_PATH=`xcrun simctl list -j | jq -r --arg sim "$UNO_UITEST_SIMULATOR_VERSION" --arg name "$UNO_UITEST_SIMULATOR_NAME" '.devices[$sim] | .[] | select(.name==$name) | .dataPath'`
|
||||
|
||||
if [ -n "$UITEST_IOSDEVICE_ID" ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
echo "Waiting for the simulator to be available"
|
||||
sleep 5
|
||||
done
|
||||
|
||||
echo "Simulator Data Path: $UITEST_IOSDEVICE_DATA_PATH"
|
||||
cp "$UITEST_IOSDEVICE_DATA_PATH/../device.plist" $UNO_UITEST_SCREENSHOT_PATH/_logs
|
||||
|
|
Загрузка…
Ссылка в новой задаче