[Lldb-commits] [lldb] r351611 - [dotest] Add logging to investigate CI issue.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 18 15:05:19 PST 2019


Author: jdevlieghere
Date: Fri Jan 18 15:05:19 2019
New Revision: 351611

URL: http://llvm.org/viewvc/llvm-project?rev=351611&view=rev
Log:
[dotest] Add logging to investigate CI issue.

We're seeing an odd issue on GreenDragon's lldb-cmake-matrix. Dotest is
unable to move a log file (OSError: [Errno 2] No such file or
directory). The os.rename call is guarded with a check that the source
file and destination directory exist.

This wraps the call in a try-except that prints the source and
destination path to see which component seemingly doesn't exist.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py?rev=351611&r1=351610&r2=351611&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Fri Jan 18 15:05:19 2019
@@ -1228,7 +1228,12 @@ class Base(unittest2.TestCase):
                         remove_file(dst)
 
                     lldbutil.mkdir_p(os.path.dirname(dst))
-                    os.rename(src, dst)
+                    try:
+                        os.rename(src, dst)
+                    except OSError:
+                        print("src (exists={}): {}".format(os.path.exists(src), src))
+                        print("dst (exists={}): {}".format(os.path.exists(dst), dst))
+                        raise
         else:
             # success!  (and we don't want log files) delete log files
             for log_file in log_files_for_this_test:




More information about the lldb-commits mailing list