From 353b511e9b1cfa34dda46e4d085758a3f19cfed5 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Sun, 17 Nov 2019 20:53:39 +0100 Subject: [PATCH] chore: CI: close ctest's stdin Apparently CMake reverted auto-closing stdin for ctest in a recent release because people relied on the old behavior... Perhaps we should add this to all test scripts instead, but this CI fix is easier --- script/ci.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/ci.sh b/script/ci.sh index eb6ef0c61f..137abc506e 100755 --- a/script/ci.sh +++ b/script/ci.sh @@ -4,6 +4,7 @@ mkdir build cd build eval cmake ../src $CMAKE_OPTIONS cmake --build . -# -T to create .xml file -ctest -j8 --output-on-failure --no-compress-output -T Test +# -T to create .xml file for CI display +# `<&-` to close stdin so that assertion dialog doesn't wait for input +ctest -j8 --output-on-failure --no-compress-output -T Test <&- cpack