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.
This commit is contained in:
parent
3c50918adc
commit
f7e42bfebc
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -81,6 +81,7 @@ jobs:
|
|||||||
working-directory: tests
|
working-directory: tests
|
||||||
- name: Print failure info
|
- name: Print failure info
|
||||||
run: |
|
run: |
|
||||||
|
shopt -s nullglob;
|
||||||
for exp in *.exp;
|
for exp in *.exp;
|
||||||
do testbase=$(basename $exp .exp);
|
do testbase=$(basename $exp .exp);
|
||||||
echo -e "\nFAILURE $testbase";
|
echo -e "\nFAILURE $testbase";
|
||||||
|
Loading…
Reference in New Issue
Block a user