Skip to content

Commit dfb7735

Browse files
committed
test(installer): match concise shell errors
1 parent 164f534 commit dfb7735

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test-standalone-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ jobs:
237237
OUTPUT=$(append_source_to_file "$SHELL_CONFIG" '. "$HOME/.vite-plus/env"' 2>&1) || RESULT=$?
238238
test "$RESULT" -eq 3
239239
echo "$OUTPUT" | grep -F "trace"
240-
echo "$OUTPUT" | grep -F "Vite+ cannot write"
240+
echo "$OUTPUT" | grep -F "permission denied"
241241
242242
CI=false
243243
unset VP_LOG
244244
RESULT=0
245245
OUTPUT=$(append_source_to_file "$SHELL_CONFIG" '. "$HOME/.vite-plus/env"' 2>&1) || RESULT=$?
246246
test "$RESULT" -eq 3
247247
echo "$OUTPUT" | grep -F "warn"
248-
echo "$OUTPUT" | grep -F "Vite+ cannot write"
248+
echo "$OUTPUT" | grep -F "permission denied"
249249
250250
- name: Incomplete directory overrides are rejected
251251
run: |
@@ -542,7 +542,7 @@ jobs:
542542
# CI gets PATH from the runner environment.
543543
# VP_LOG=trace shows shell file errors.
544544
# Normal output does not show these errors.
545-
if echo "$output" | grep -Eqi "Vite[+] cannot (write|create)|Shell configuration:|Some shells still need manual setup"; then
545+
if echo "$output" | grep -Eqi "permission denied|Shell configuration:|Some shells still need manual setup"; then
546546
echo "Installer printed shell configuration details in CI"
547547
exit 1
548548
fi

0 commit comments

Comments
 (0)