Skip to content

Commit 6aac11e

Browse files
committed
Use CTest --output-on-failure flag
1 parent ec57151 commit 6aac11e

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

.github/workflows/linux-other-builds.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ jobs:
100100
run: ninja
101101

102102
- name: Run tests
103-
env:
104-
CTEST_OUTPUT_ON_FAILURE: 1
105103
working-directory: ${{runner.workspace}}/build
106-
run: ctest -C ${{matrix.build_type}} -j `nproc` ${{matrix.other_ctest_args}}
104+
run: ctest -C ${{matrix.build_type}} -j `nproc` ${{matrix.other_ctest_args}} --output-on-failure
107105
clang-tidy:
108106
name: clang-tidy ${{matrix.version}}, ${{matrix.build_description}}, C++${{matrix.std}} ${{matrix.build_type}}
109107
runs-on: ubuntu-22.04

.github/workflows/linux-simple-builds.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,5 @@ jobs:
118118
run: ninja
119119

120120
- name: Run tests
121-
env:
122-
CTEST_OUTPUT_ON_FAILURE: 1
123121
working-directory: ${{runner.workspace}}/build
124-
run: ctest -C ${{matrix.build_type}} -j `nproc`
122+
run: ctest -C ${{matrix.build_type}} -j `nproc` --output-on-failure

.github/workflows/mac-builds-m1.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,5 @@ jobs:
3939
run: make -j `sysctl -n hw.ncpu`
4040

4141
- name: Run tests
42-
env:
43-
CTEST_OUTPUT_ON_FAILURE: 1
4442
working-directory: ${{runner.workspace}}/build
45-
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`
43+
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure

.github/workflows/mac-builds.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,5 @@ jobs:
4343
run: make -j `sysctl -n hw.ncpu`
4444

4545
- name: Run tests
46-
env:
47-
CTEST_OUTPUT_ON_FAILURE: 1
4846
working-directory: ${{runner.workspace}}/build
49-
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`
47+
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure

.github/workflows/windows-simple-builds.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,5 @@ jobs:
3232

3333
- name: Run tests
3434
working-directory: ${{runner.workspace}}/build
35-
env:
36-
CTEST_OUTPUT_ON_FAILURE: 1
37-
run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
35+
run: ctest -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
3836
shell: cmd

0 commit comments

Comments
 (0)