Ignore failures from failed cleanup.

This `try` used to be in the function above, but an upstream change
made it our responsibility.

Change-Id: I34f1dca7244f67242b7a8f2979bf7560bc12b706
This commit is contained in:
Dan Albert
2015-01-14 18:08:38 -08:00
parent 8234f20ae7
commit 2b3c63f704

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)