Skip to content

Commit

Permalink
use tee with cat
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 6, 2019
1 parent 08f1f7e commit 7cd5b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/qgis_resources/test_runner/qgis_testrunner.sh
Expand Up @@ -11,7 +11,7 @@
TEST_NAME=$1

echo "Running test $1 ..."
OUTPUT=$(QGIS_TEST_MODULE=${TEST_NAME} qgis --version-migration --nologo --code /usr/bin/qgis_testrunner.py "$TEST_NAME" 2>/dev/null)
OUTPUT=$(QGIS_TEST_MODULE=${TEST_NAME} unbuffer qgis --version-migration --nologo --code /usr/bin/qgis_testrunner.py "$TEST_NAME" 2>/dev/null | tee >(cat))
EXIT_CODE="$?"
if [ -z "$OUTPUT" ]; then
echo "ERROR: no output from the test runner! (exit code: ${EXIT_CODE})"
Expand Down

0 comments on commit 7cd5b5e

Please sign in to comment.