[llvm-commits] [zorg] r127921 - /zorg/trunk/lnt/lnt/tests/nt.py
Daniel Dunbar
daniel at zuster.org
Fri Mar 18 16:17:06 PDT 2011
Author: ddunbar
Date: Fri Mar 18 18:17:05 2011
New Revision: 127921
URL: http://llvm.org/viewvc/llvm-project?rev=127921&view=rev
Log:
LNT: Absolutize LLVM source and build directory paths, which otherwise lead to
very confusing errors. Also, enforce that they exist.
Modified:
zorg/trunk/lnt/lnt/tests/nt.py
Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=127921&r1=127920&r2=127921&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Fri Mar 18 18:17:05 2011
@@ -820,9 +820,18 @@
parser.error('--llvm-src is required')
if opts.llvm_obj_root is None:
parser.error('--llvm-obj is required')
+
+ # Make LLVM source and object paths absolute, this is required.
+ opts.llvm_src_root = os.path.abspath(opts.llvm_src_root)
+ opts.llvm_obj_root = os.path.abspath(opts.llvm_obj_root)
+ if not os.path.exists(opts.llvm_src_root):
+ parser.error('--llvm-src argument does not exist')
+ if not os.path.exists(opts.llvm_obj_root):
+ parser.error('--llvm-obj argument does not exist')
+
if opts.test_suite_root is None:
parser.error('--test-suite is required')
-
+
if opts.remote:
if opts.remote_port is None:
parser.error('--remote-port is required with --remote')
More information about the llvm-commits
mailing list