Fix redirection so stray stderr output from qemu doesn't cause mysterious test
authorDavid Given <dg@cowlark.com>
Tue, 6 Dec 2016 21:05:14 +0000 (22:05 +0100)
committerDavid Given <dg@cowlark.com>
Tue, 6 Dec 2016 21:05:14 +0000 (22:05 +0100)
failures.

tests/plat/testdriver.sh

index 5e8e5b8..384c83b 100755 (executable)
@@ -27,7 +27,7 @@ get_test_output() {
                 qemu-system-ppc)  img="-kernel $img" ;;
             esac
 
-            $timeoutprog -t $timeout -- $method -nographic $img 2>&1 > $result
+            $timeoutprog -t $timeout -- $method -nographic $img > $result 2>&1
             ;;
 
         qemu-*)
@@ -37,7 +37,7 @@ get_test_output() {
                 exit 0
             fi
 
-            $method $img 2>&1 > $result
+            $method $img > $result 2>&1
             ;;
 
         *)