Skip to content

Commit

Permalink
CI: always cat the file test/tests.log
Browse files Browse the repository at this point in the history
This change shows `tests.log` also when the tests fail.

The file `tests.log` is expected to be present when
either the fast collection of tests, or the complete
collection of tests, has failed.

This is because in both cases, the tests are run by
the script `test/TOOLS/do_tests`, which defines:

```sh
export LOGFILE="$BASEDIR/tests.log"
```

[Documentation relevant to the expression
`if: always()` for GitHub Actions](
    https://docs.github.com/en/actions/learn-github-actions/expressions#always)
  • Loading branch information
johnyf committed Jun 28, 2022
1 parent 61dc7ed commit 0bbd7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH tlapm --version
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH make testall
- name: Print Test Results
if: matrix.operating-system == 'ubuntu-latest'
if: always()
run: |
cat test/tests.log
- name: show logs for each test file
Expand Down

0 comments on commit 0bbd7e3

Please sign in to comment.