Skip to content

Commit ef21ce2

Browse files
vgoehlerCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6487d66 commit ef21ce2

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/cram/check_changes.t

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ emoji-prefixed output lines compare cleanly against plain-text expectations.
1111
No argument → usage message, non-zero exit
1212
------------------------------------------
1313

14-
$ bash "$REPO_ROOT/scripts/check_changes.sh" 2>&1 | ascii | grep "Usage:"
14+
$ output=$(bash "$REPO_ROOT/scripts/check_changes.sh" 2>&1); status=$?; printf '%s\n' "$output" | ascii | grep "Usage:"; echo "exit:$status"
1515
Usage: */check_changes.sh <course_name> (glob)
16+
exit:1
1617

17-
Missing YAML file → error message
18-
----------------------------------
18+
Missing YAML file → error message, non-zero exit
19+
-------------------------------------------------
1920

20-
$ bash "$REPO_ROOT/scripts/check_changes.sh" "doesnotexist" 2>&1 | ascii | grep "not found"
21+
$ output=$(bash "$REPO_ROOT/scripts/check_changes.sh" "doesnotexist" 2>&1); status=$?; printf '%s\n' "$output" | ascii | grep "not found"; echo "exit:$status"
2122
YAML file doesnotexist.yml not found
23+
exit:1
2224

2325
First runno cache, no HTML → rebuild needed
2426
-----------------------------------------------

0 commit comments

Comments
 (0)