Commit 3bfe197a authored by Ben Pastene's avatar Ben Pastene Committed by Commit Bot

When deleting crash dirs in cros VM tests, print out the file name.

R=jbudorick@chromium.org

Change-Id: Ic593c71edc288deb6aa9480b2bf9542722b38f0f
Reviewed-on: https://chromium-review.googlesource.com/1217914Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590485}
parent 8b6a26f7
...@@ -209,8 +209,10 @@ class GTestTest(RemoteTest): ...@@ -209,8 +209,10 @@ class GTestTest(RemoteTest):
vm_test_script_contents += [ vm_test_script_contents += [
# We run tests as chronos, but need to be root to rm the files. So pass # We run tests as chronos, but need to be root to rm the files. So pass
# in the public plaintext root password to sudo via stdin. # in the public plaintext root password to sudo via stdin.
'echo "test0000" | sudo -S find /var/spool/crash/ -type f -delete', 'echo "test0000" | '
'echo "test0000" | sudo -S find /var/log/chrome/ -type f -delete', 'sudo -S find /var/spool/crash/ -type f -print -delete',
'echo "test0000" | '
'sudo -S find /var/log/chrome/ -type f -print -delete',
# Make sure the exit code is that of the test, and not the post-test # Make sure the exit code is that of the test, and not the post-test
# cleanup. # cleanup.
'exit $test_retcode', 'exit $test_retcode',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment