@@ -290,21 +290,22 @@ runs:
290290 avd-name : ${{ fromJson(steps.load-config.outputs.config).config.device.name }}
291291 disable-animations : true
292292 emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
293- script : |
293+ script : >-
294+ bash -lc '
294295 export HARNESS_PROJECT_ROOT="$PWD"
295296
296- adb install -r ${{ inputs.app }}
297+ adb install -r " ${{ inputs.app }}"
297298
298299 if [ -n "$PRE_RUN_HOOK" ]; then
299300 pre_hook_file="$(mktemp "${RUNNER_TEMP:-/tmp}/harness-pre-run.XXXXXX.sh")"
300- printf ' %s\n' "$PRE_RUN_HOOK" > "$pre_hook_file"
301+ printf " %s\n" "$PRE_RUN_HOOK" > "$pre_hook_file"
301302 chmod +x "$pre_hook_file"
302303 bash "$pre_hook_file"
303304 rm -f "$pre_hook_file"
304305 fi
305306
306307 set +e
307- ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner ${{ inputs.runner }} ${{ inputs.harnessArgs }}
308+ ${{ steps.detect-pm.outputs.runner }}react-native-harness --harnessRunner " ${{ inputs.runner }}" ${{ inputs.harnessArgs }}
308309 harness_exit_code=$?
309310 echo "harness_exit_code=$harness_exit_code" >> "$GITHUB_OUTPUT"
310311 set -e
@@ -313,7 +314,7 @@ runs:
313314 after_run_exit_code=0
314315 if [ -n "$AFTER_RUN_HOOK" ]; then
315316 after_hook_file="$(mktemp "${RUNNER_TEMP:-/tmp}/harness-after-run.XXXXXX.sh")"
316- printf ' %s\n' "$AFTER_RUN_HOOK" > "$after_hook_file"
317+ printf " %s\n" "$AFTER_RUN_HOOK" > "$after_hook_file"
317318 chmod +x "$after_hook_file"
318319 set +e
319320 bash "$after_hook_file"
@@ -329,6 +330,7 @@ runs:
329330 if [ "$after_run_exit_code" -ne 0 ]; then
330331 exit "$after_run_exit_code"
331332 fi
333+ '
332334 - name : Upload visual test artifacts
333335 if : always() && inputs.uploadVisualTestArtifacts == 'true'
334336 uses : actions/upload-artifact@v4
0 commit comments