[LNT] r261845 - [test-suite] resolve the path to --cxx when given on the command line

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 02:04:19 PST 2016


Author: jamesm
Date: Thu Feb 25 04:04:19 2016
New Revision: 261845

URL: http://llvm.org/viewvc/llvm-project?rev=261845&view=rev
Log:
[test-suite] resolve the path to --cxx when given on the command line

When not inferring opts.cxx, make sure it is resolved to a full path.

Modified:
    lnt/trunk/lnt/tests/test_suite.py

Modified: lnt/trunk/lnt/tests/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/test_suite.py?rev=261845&r1=261844&r2=261845&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Thu Feb 25 04:04:19 2016
@@ -193,7 +193,9 @@ class TestSuiteTest(BuiltinTest):
                 note("Inferred C++ compiler under test as: %r" % (opts.cxx,))
             else:
                 parser.error("unable to infer --cxx - set it manually.")
-
+        else:
+            opts.cxx = resolve_command_path(opts.cxx)
+                
         if not os.path.exists(opts.cxx):
             parser.error("invalid --cxx argument %r, does not exist" % (opts.cxx))
 




More information about the llvm-commits mailing list