summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-10-22 08:02:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-10-22 08:02:45 +0000
commit70f4b9929048e71c4231d7976080be6277c3374b (patch)
tree40fcbeb6cca3e1deb89affda5e049942261b240e
parent94e5af8602150efa95bde35cc9be9891ddf30135 (diff)
parentdeb48a0b5bd1da4d5dce64454d2ff44e3fca875a (diff)
downloadart-70f4b9929048e71c4231d7976080be6277c3374b.zip
art-70f4b9929048e71c4231d7976080be6277c3374b.tar.gz
art-70f4b9929048e71c4231d7976080be6277c3374b.tar.bz2
Merge "ART: Print args in case of run-test build failure"
-rwxr-xr-xtest/089-many-methods/check2
-rwxr-xr-xtest/run-test2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/089-many-methods/check b/test/089-many-methods/check
index ec6733d..594626a 100755
--- a/test/089-many-methods/check
+++ b/test/089-many-methods/check
@@ -15,6 +15,6 @@
# limitations under the License.
# Strip build error debug messages, as they are environment-specific.
-sed -e '/^Failed to build/d' -e '/^Non-canonical tmpdir/d' "$2" > "$2.tmp"
+sed -e '/^Failed to build/d' -e '/^Non-canonical tmpdir/d' -e '/^Args:/d' "$2" > "$2.tmp"
diff --strip-trailing-cr -q "$1" "$2.tmp" >/dev/null \ No newline at end of file
diff --git a/test/run-test b/test/run-test
index 36288d7..73ffc31 100755
--- a/test/run-test
+++ b/test/run-test
@@ -17,6 +17,7 @@
# Set up prog to be the path of this script, including following symlinks,
# and set up progdir to be the fully-qualified pathname of its directory.
prog="$0"
+args="$@"
while [ -h "${prog}" ]; do
newProg=`/bin/ls -ld "${prog}"`
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
@@ -528,6 +529,7 @@ else
cp "$build_output" "$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 "Args: ${args}" >> "output"
echo "build exit status: $build_exit" >> "$output"
fi
./$check_cmd "$expected" "$output"