Correct clean up in android perf runner.
authormachenbach <machenbach@chromium.org>
Mon, 8 Dec 2014 09:10:38 +0000 (01:10 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Dec 2014 09:10:48 +0000 (09:10 +0000)
BUG=chromium:374740
LOG=n
TEST=python -m unittest run_perf_test
NOTRY=true
TBR=ulan@chromium.org

Review URL: https://codereview.chromium.org/776223003

Cr-Commit-Position: refs/heads/master@{#25700}

tools/run_perf.py

index b8b49aa724e262225b9e28f431cd1978d77378a0..a4fc8b3463d14856fdc0d5b0935f1aa24b4fefe0 100755 (executable)
@@ -516,10 +516,7 @@ class AndroidPlatform(Platform):  # pragma: no cover
   def PostExecution(self):
     perf = perf_control.PerfControl(self.device)
     perf.SetDefaultPerfMode()
-    self.device.RunShellCommand(
-        ["rm", "-rf", "*"],
-        cwd=AndroidPlatform.DEVICE_DIR,
-    )
+    self.device.RunShellCommand(["rm", "-rf", AndroidPlatform.DEVICE_DIR])
 
   def _PushFile(self, host_dir, file_name, target_rel="."):
     file_on_host = os.path.join(host_dir, file_name)