File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,11 +37,16 @@ export MAESTRO_CLI_NO_ANALYTICS=1
3737export MAESTRO_CLI_ANALYSIS_NOTIFICATION_DISABLED=true
3838
3939echo " Running End-to-End tests on Android..."
40+
41+ # Run maestro and capture exit code (don't exit immediately on failure)
42+ set +e
4043maestro test \
4144 test/e2e/test-suites-flow.yml \
4245 --config .maestro/config.yml \
4346 --env PLATFORM=android \
4447 --test-output-dir $HOME /output
48+ MAESTRO_EXIT_CODE=$?
49+ set -e
4550
4651echo " Listing Output Directory"
4752ls -l $HOME /output/**
@@ -55,3 +60,6 @@ if [ -n "$LATEST_SCREENSHOT" ]; then
5560else
5661 echo " No screenshot found to copy"
5762fi
63+
64+ # Exit with the original Maestro exit code
65+ exit $MAESTRO_EXIT_CODE
Original file line number Diff line number Diff line change @@ -28,11 +28,16 @@ export MAESTRO_CLI_NO_ANALYTICS=1
2828export MAESTRO_CLI_ANALYSIS_NOTIFICATION_DISABLED=true
2929
3030echo " Running End-to-End tests on iOS..."
31+
32+ # Run maestro and capture exit code (don't exit immediately on failure)
33+ set +e
3134maestro test \
3235 test/e2e/test-suites-flow.yml \
3336 --config .maestro/config.yml \
3437 --env PLATFORM=ios \
3538 --test-output-dir $HOME /output
39+ MAESTRO_EXIT_CODE=$?
40+ set -e
3641
3742echo " Listing Output Directory"
3843ls -l $HOME /output/**
@@ -46,3 +51,6 @@ if [ -n "$LATEST_SCREENSHOT" ]; then
4651else
4752 echo " No screenshot found to copy"
4853fi
54+
55+ # Exit with the original Maestro exit code
56+ exit $MAESTRO_EXIT_CODE
You can’t perform that action at this time.
0 commit comments