Skip to content

Commit 5342b0e

Browse files
committed
chore: add explicit error code
1 parent c56600b commit 5342b0e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/ci.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function start_simulators_from_env_iOS() {
132132
echo "Shutdown command exit code: $shutdown_status"
133133
if [[ $shutdown_status -ne 0 ]]; then
134134
echo "Error: Shutdown command failed for $simulator_udid"
135-
exit 1
135+
exit 100
136136
fi
137137
sleep 5
138138
fi
@@ -144,19 +144,19 @@ function start_simulators_from_env_iOS() {
144144
echo "Boot command exit code: $boot_status"
145145
if [[ $boot_status -ne 0 ]]; then
146146
echo "Error: Boot command failed for $simulator_udid"
147-
exit 1
147+
exit 101
148148
fi
149149
sleep 5
150150

151151
booted=$(xcrun simctl list devices booted | grep "$simulator_udid")
152152
echo "Post-boot status for $simulator_udid: $booted"
153153
if [[ -z "$booted" ]]; then
154154
echo "Error: Simulator $simulator_udid did not boot successfully."
155-
exit 1
155+
exit 102
156156
fi
157157
else
158158
echo "Error: $simulator_label simulator (env var $env_var) is not set"
159-
exit 1
159+
exit 104
160160
fi
161161
done
162162

@@ -173,7 +173,7 @@ function start_simulators_from_env_iOS() {
173173
# Function to start the Appium server
174174
function start_appium_server() {
175175
echo "Starting Appium server..."
176-
cd forked-session-appium || exit 1
176+
cd forked-session-appium || exit 110
177177
start-server
178178
}
179179

@@ -193,7 +193,7 @@ function stop_simulators_from_env_iOS() {
193193
xcrun simctl shutdown "$simulator_udid"
194194
else
195195
echo "$simulator_label simulator is not running or does not exist."
196-
exit 1
196+
exit 120
197197
fi
198198
else
199199
echo "Skipping $simulator_label simulator (not set)"

0 commit comments

Comments
 (0)