Skip to content

Commit 9a5ef58

Browse files
committed
Fix escaping for check for EXIT_NO_TESTS_FOUND (69)
1 parent b4286f5 commit 9a5ef58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ runs:
379379
# We additionally need to handle the special exit code EXIT_NO_TESTS_FOUND (69 on Android),
380380
# which can happen when the tests link to Testing, but no tests are executed
381381
# see: https://github.com/swiftlang/swift-package-manager/blob/1b593469e8ad3daf2cc10e798340bd2de68c402d/Sources/Commands/SwiftTestCommand.swift#L1542
382-
patchelf --print-needed ${XCTEST} | grep libTesting.so && TEST_SHELL="${TEST_SHELL} && ${TEST_CMD} --testing-library swift-testing && [ $? -eq 0 ] || [ $? -eq 69 ]" || true
382+
patchelf --print-needed ${XCTEST} | grep libTesting.so && TEST_SHELL="${TEST_SHELL} && ${TEST_CMD} --testing-library swift-testing && [ \$? -eq 0 ] || [ \$? -eq 69 ]" || true
383383
fi
384384
echo "adb shell '${TEST_SHELL}'" >> ${SCRIPT_FILE}
385385
done

0 commit comments

Comments
 (0)