From c2b42aecb4e2c8f57ddeecc54629bc41c1b72fcf Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Thu, 4 Nov 2021 08:27:19 +0100 Subject: [PATCH] CI: Use --output-on-failure flag for ctest This flag makes sure that the verbose output of running the test cases is not shown, unless the test fails. In that case the full output is displayed (for that test case). --- .ci/azure-pipelines/steps_linux.yml | 2 +- .ci/azure-pipelines/steps_macos.yml | 2 +- .ci/azure-pipelines/steps_windows.yml | 2 +- .github/workflows/build.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci/azure-pipelines/steps_linux.yml b/.ci/azure-pipelines/steps_linux.yml index 91a87162f..32b5d555c 100644 --- a/.ci/azure-pipelines/steps_linux.yml +++ b/.ci/azure-pipelines/steps_linux.yml @@ -12,7 +12,7 @@ steps: env: MUMBLE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN) displayName: 'Build' - - script: 'cd $BUILD_BINARIESDIRECTORY; QT_QPA_PLATFORM=offscreen ctest --verbose' + - script: 'cd $BUILD_BINARIESDIRECTORY; QT_QPA_PLATFORM=offscreen ctest --output-on-failure' displayName: 'Test' # - script: .ci/azure-pipelines/package_AppImage.bash # displayName: 'Release' diff --git a/.ci/azure-pipelines/steps_macos.yml b/.ci/azure-pipelines/steps_macos.yml index 16bfdfd33..d225c2862 100644 --- a/.ci/azure-pipelines/steps_macos.yml +++ b/.ci/azure-pipelines/steps_macos.yml @@ -18,7 +18,7 @@ steps: env: MUMBLE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN) displayName: 'Build' - - script: 'cd $BUILD_BINARIESDIRECTORY; ctest --verbose' + - script: 'cd $BUILD_BINARIESDIRECTORY; ctest --output-on-failure' displayName: 'Test' - script: .ci/azure-pipelines/release_macos.bash displayName: 'Release' diff --git a/.ci/azure-pipelines/steps_windows.yml b/.ci/azure-pipelines/steps_windows.yml index b7ed02435..535ce43cb 100644 --- a/.ci/azure-pipelines/steps_windows.yml +++ b/.ci/azure-pipelines/steps_windows.yml @@ -12,7 +12,7 @@ steps: env: MUMBLE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN) displayName: 'Build' - - script: 'cd /d %BUILD_BINARIESDIRECTORY% & ctest --verbose' + - script: 'cd /d %BUILD_BINARIESDIRECTORY% & ctest --output-on-failure' env: # Set timeout for tests to 15min QTEST_FUNCTION_TIMEOUT: 900000 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f7f4c642..b18b77fb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,5 +67,5 @@ jobs: - name: Test working-directory: ${{runner.workspace}}/build shell: bash - run: QT_QPA_PLATFORM=offscreen ctest -v -C $BUILD_TYPE + run: QT_QPA_PLATFORM=offscreen ctest -output-on-failure -C $BUILD_TYPE