Skip to content

Commit f7e42bf

Browse files
committed
build.yml: Fix 'Print failure info' to not error
Print Failure Info is for printing differences detected by 'Test all'. When some other step fails, then "*.exp" doesn't match any files at all, and _this_ step fails too. We will assume that Github Actions always runs with bash as the shell (as it does today). In this case, we can set the "nullglob" shell option, so that a non-existent glob expands to nothing, instead of to itself.
1 parent 3c50918 commit f7e42bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
working-directory: tests
8282
- name: Print failure info
8383
run: |
84+
shopt -s nullglob;
8485
for exp in *.exp;
8586
do testbase=$(basename $exp .exp);
8687
echo -e "\nFAILURE $testbase";

0 commit comments

Comments
 (0)