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
This commit is contained in:
Nikola Dipanov 2015-02-02 16:26:31 +01:00
parent 0eee9cbfa7
commit 6ca2947e26
1 changed files with 1 additions and 1 deletions

View File

@ -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.