diff options
author | Nikola Dipanov <ndipanov@redhat.com> | 2015-02-02 16:26:31 +0100 |
---|---|---|
committer | Nikola Dipanov <ndipanov@redhat.com> | 2015-02-02 16:26:31 +0100 |
commit | 6ca2947e2688d2e0c6735cfed7a3266916ed312d (patch) | |
tree | 53eb1f46e62df79dde965e83891af86eb4d816ea /run_tests.sh | |
parent | 0eee9cbfa720c94ba11683d349f4dcc64a8f4672 (diff) | |
download | nova-6ca2947e2688d2e0c6735cfed7a3266916ed312d.tar.gz |
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
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh index df7e1be856..98756adf2a 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. |