Use CTest --output-on-failure flag

This commit is contained in:
Chris Thrasher 2025-04-26 09:11:21 -06:00
parent ec571515c8
commit 6aac11e17d
No known key found for this signature in database
GPG Key ID: 56FB686C9DFC8E2C
5 changed files with 5 additions and 15 deletions

View File

@ -100,10 +100,8 @@ jobs:
run: ninja run: ninja
- name: Run tests - name: Run tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}} -j `nproc` ${{matrix.other_ctest_args}} run: ctest -C ${{matrix.build_type}} -j `nproc` ${{matrix.other_ctest_args}} --output-on-failure
clang-tidy: clang-tidy:
name: clang-tidy ${{matrix.version}}, ${{matrix.build_description}}, C++${{matrix.std}} ${{matrix.build_type}} name: clang-tidy ${{matrix.version}}, ${{matrix.build_description}}, C++${{matrix.std}} ${{matrix.build_type}}
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04

View File

@ -118,7 +118,5 @@ jobs:
run: ninja run: ninja
- name: Run tests - name: Run tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}} -j `nproc` run: ctest -C ${{matrix.build_type}} -j `nproc` --output-on-failure

View File

@ -39,7 +39,5 @@ jobs:
run: make -j `sysctl -n hw.ncpu` run: make -j `sysctl -n hw.ncpu`
- name: Run tests - name: Run tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure

View File

@ -43,7 +43,5 @@ jobs:
run: make -j `sysctl -n hw.ncpu` run: make -j `sysctl -n hw.ncpu`
- name: Run tests - name: Run tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure

View File

@ -32,7 +32,5 @@ jobs:
- name: Run tests - name: Run tests
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
env: run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
shell: cmd shell: cmd