fix(ci): prevent grep exit code 1 from failing empty dir check (#10315)

This commit is contained in:
Alan Buscaglia
2026-03-12 11:39:01 +01:00
committed by GitHub
parent 5346222be2
commit ba92a592ab

View File

@@ -242,7 +242,7 @@ jobs:
echo "Skipping empty test directory: $p"
fi
done <<< "$TEST_PATHS"
VALID_PATHS=$(echo "$VALID_PATHS" | grep -v '^$')
VALID_PATHS=$(echo "$VALID_PATHS" | grep -v '^$' || true)
if [[ -z "$VALID_PATHS" ]]; then
echo "No test files found in any resolved paths — skipping E2E"
exit 0