From 6ca2947e2688d2e0c6735cfed7a3266916ed312d Mon Sep 17 00:00:00 2001 From: Nikola Dipanov Date: Mon, 2 Feb 2015 16:26:31 +0100 Subject: [PATCH] Fix likely undesired use of redirection Redirection set up like this will not work as expected as the duplication (2>&1 part) is set up before redirection, and thus only stdout ends up getting redirected. Change-Id: I02f47ee69b48a38db348573259d471cd3b236231 --- run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index df7e1be856e3..98756adf2a35 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -140,7 +140,7 @@ function run_tests { ${wrapper} python setup.py egg_info fi echo "Running \`${wrapper} $TESTRTESTS\`" - if ${wrapper} which subunit-2to1 2>&1 > /dev/null + if ${wrapper} which subunit-2to1 >/dev/null 2>&1 then # subunit-2to1 is present, testr subunit stream should be in version 2 # format. Convert to version one before colorizing.