am 2b3c63f7: Ignore failures from failed cleanup.

* commit '2b3c63f7049d05a7affe265fed13516d16e6810e':
  Ignore failures from failed cleanup.
This commit is contained in:
Dan Albert
2015-01-15 02:57:41 +00:00
committed by Android Git Automerger

View File

@@ -104,7 +104,10 @@ class TestFormat(HostTestFormat):
exec_file = os.path.basename(exec_path)
cmd = ['adb', 'shell', 'rm', '-rf', self._working_directory(exec_file)]
lit.util.executeCommand(cmd)
os.remove(exec_path)
try:
os.remove(exec_path)
except OSError:
pass
def _run(self, exec_path, lit_config, in_dir=None):
exec_file = os.path.basename(exec_path)