diff --git a/examples/react-native/tests/test-suite-all-e2e.yaml b/examples/react-native/tests/test-suite-all-e2e.yaml index 8fa079a..7eff4c8 100644 --- a/examples/react-native/tests/test-suite-all-e2e.yaml +++ b/examples/react-native/tests/test-suite-all-e2e.yaml @@ -581,9 +581,10 @@ processes: exit 1 fi - # Capture simulator logs for analysis + # Capture simulator logs for analysis (scoped to our app process) if [ -n "$UDID" ]; then - xcrun simctl spawn "$UDID" log show --last 2m --style compact > "$_logs_dir/simulator-app.log" 2>&1 || true + APP_PROCESS="${IOS_APP_SCHEME:-ReactNativeExample}" + xcrun simctl spawn "$UDID" log show --last 2m --predicate "process == \"$APP_PROCESS\"" --style compact > "$_logs_dir/simulator-app.log" 2>&1 || true # Scan for native crash patterns error_patterns="Terminating app|SIGABRT|EXC_BAD_ACCESS|EXC_CRASH|Assertion failure" diff --git a/examples/react-native/tests/test-suite-ios-e2e.yaml b/examples/react-native/tests/test-suite-ios-e2e.yaml index 6cfa7a6..121b934 100644 --- a/examples/react-native/tests/test-suite-ios-e2e.yaml +++ b/examples/react-native/tests/test-suite-ios-e2e.yaml @@ -313,9 +313,10 @@ processes: exit 1 fi - # Capture simulator logs for analysis + # Capture simulator logs for analysis (scoped to our app process) if [ -n "$UDID" ]; then - xcrun simctl spawn "$UDID" log show --last 2m --style compact > "$_logs_dir/simulator-app.log" 2>&1 || true + APP_PROCESS="${IOS_APP_SCHEME:-ReactNativeExample}" + xcrun simctl spawn "$UDID" log show --last 2m --predicate "process == \"$APP_PROCESS\"" --style compact > "$_logs_dir/simulator-app.log" 2>&1 || true # Scan for native crash patterns error_patterns="Terminating app|SIGABRT|EXC_BAD_ACCESS|EXC_CRASH|Assertion failure"