From 2b3c63f7049d05a7affe265fed13516d16e6810e Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 14 Jan 2015 18:08:38 -0800 Subject: 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 --- test/libcxx/android/test/format.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3