OSDN Git Service

ART: Fix run-test script
authorAndreas Gampe <agampe@google.com>
Tue, 21 Oct 2014 16:33:08 +0000 (09:33 -0700)
committerAndreas Gampe <agampe@google.com>
Tue, 21 Oct 2014 16:33:08 +0000 (09:33 -0700)
Correctly pipe error information to the output file.

Bug: 17959926
Change-Id: Ifccf2a2a22517b2523228718be6d2a57250847c2

test/run-test

index 62c701f..36288d7 100755 (executable)
@@ -526,9 +526,9 @@ else
         "./${run}" $run_args "$@" >"$output" 2>&1
     else
         cp "$build_output" "$output"
-        echo "Failed to build in tmpdir=${tmp_dir} from oldwd=${oldwd} and cwd=`pwd`"
-        echo "Non-canonical tmpdir was ${noncanonical_tmp_dir}"
-        echo "build exit status: $build_exit" >>"$output"
+        echo "Failed to build in tmpdir=${tmp_dir} from oldwd=${oldwd} and cwd=`pwd`" >> "$output"
+        echo "Non-canonical tmpdir was ${noncanonical_tmp_dir}" >> "$output"
+        echo "build exit status: $build_exit" >> "$output"
     fi
     ./$check_cmd "$expected" "$output"
     if [ "$?" = "0" ]; then