@@ -132,7 +132,7 @@ function start_simulators_from_env_iOS() {
132
132
echo " Shutdown command exit code: $shutdown_status "
133
133
if [[ $shutdown_status -ne 0 ]]; then
134
134
echo " Error: Shutdown command failed for $simulator_udid "
135
- exit 1
135
+ exit 100
136
136
fi
137
137
sleep 5
138
138
fi
@@ -144,19 +144,19 @@ function start_simulators_from_env_iOS() {
144
144
echo " Boot command exit code: $boot_status "
145
145
if [[ $boot_status -ne 0 ]]; then
146
146
echo " Error: Boot command failed for $simulator_udid "
147
- exit 1
147
+ exit 101
148
148
fi
149
149
sleep 5
150
150
151
151
booted=$( xcrun simctl list devices booted | grep " $simulator_udid " )
152
152
echo " Post-boot status for $simulator_udid : $booted "
153
153
if [[ -z " $booted " ]]; then
154
154
echo " Error: Simulator $simulator_udid did not boot successfully."
155
- exit 1
155
+ exit 102
156
156
fi
157
157
else
158
158
echo " Error: $simulator_label simulator (env var $env_var ) is not set"
159
- exit 1
159
+ exit 104
160
160
fi
161
161
done
162
162
@@ -173,7 +173,7 @@ function start_simulators_from_env_iOS() {
173
173
# Function to start the Appium server
174
174
function start_appium_server() {
175
175
echo " Starting Appium server..."
176
- cd forked-session-appium || exit 1
176
+ cd forked-session-appium || exit 110
177
177
start-server
178
178
}
179
179
@@ -193,7 +193,7 @@ function stop_simulators_from_env_iOS() {
193
193
xcrun simctl shutdown " $simulator_udid "
194
194
else
195
195
echo " $simulator_label simulator is not running or does not exist."
196
- exit 1
196
+ exit 120
197
197
fi
198
198
else
199
199
echo " Skipping $simulator_label simulator (not set)"
0 commit comments