Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89224cb

Browse files
committed
test: Updated whitespace filtering in retry attempts
1 parent31616b2 commit89224cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎.github/workflows/playwright.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ jobs:
327327
# Try to get last failed tests from TestDino
328328
# Redirect stderr to /dev/null to avoid capturing npm warnings
329329
if LAST_FAILED_FLAGS="$(npx tdpw last-failed --cache-id "$CACHE_ID" 2>/dev/null)"; then
330-
# Trim whitespace(original working logic - no filtering)
331-
LAST_FAILED_FLAGS="$(echo "$LAST_FAILED_FLAGS" |xargs)"
330+
# Trim whitespaceusing parameter expansion (safer than xargs for quoted strings)
331+
LAST_FAILED_FLAGS="$(echo "$LAST_FAILED_FLAGS" |sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
332332
333333
if [ -n "$LAST_FAILED_FLAGS" ] && [ "$LAST_FAILED_FLAGS" != "No failed tests found" ]; then
334334
echo "::notice::✅ Found failed tests from previous run."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp