diff options
-rw-r--r-- | test/libcxx/android/test/format.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/libcxx/android/test/format.py b/test/libcxx/android/test/format.py index 5897c2e1c..7fae5e101 100644 --- a/test/libcxx/android/test/format.py +++ b/test/libcxx/android/test/format.py @@ -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) |