[test-suite] r266781 - lit: Set test_exec_root and create the logfile there

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 10:49:15 PDT 2016


Author: matze
Date: Tue Apr 19 12:49:14 2016
New Revision: 266781

URL: http://llvm.org/viewvc/llvm-project?rev=266781&view=rev
Log:
lit: Set test_exec_root and create the logfile there

Also remove the unused test_suite_root setting.

Modified:
    test-suite/trunk/lit.cfg
    test-suite/trunk/lit.site.cfg.in

Modified: test-suite/trunk/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.cfg?rev=266781&r1=266780&r2=266781&view=diff
==============================================================================
--- test-suite/trunk/lit.cfg (original)
+++ test-suite/trunk/lit.cfg Tue Apr 19 12:49:14 2016
@@ -26,7 +26,7 @@ else:
 # Setup logging
 logger = logging.getLogger()
 logger.setLevel(logging.DEBUG)
-file_log = logging.FileHandler("%s/test.log" % config.test_source_root,
+file_log = logging.FileHandler("%s/test.log" % config.test_exec_root,
                                mode="w")
 file_log.setLevel(logging.DEBUG)
 logger.addHandler(file_log)

Modified: test-suite/trunk/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.site.cfg.in?rev=266781&r1=266780&r2=266781&view=diff
==============================================================================
--- test-suite/trunk/lit.site.cfg.in (original)
+++ test-suite/trunk/lit.site.cfg.in Tue Apr 19 12:49:14 2016
@@ -1,7 +1,7 @@
 import sys
 
 config.test_source_root = "@CMAKE_BINARY_DIR@"
-config.test_suite_root = "@CMAKE_SOURCE_DIR@"
+config.test_exec_root = "@CMAKE_BINARY_DIR@"
 config.remote_client = "@TEST_SUITE_REMOTE_CLIENT@"
 config.remote_host = "@TEST_SUITE_REMOTE_HOST@"
 config.remote_user = "@TEST_SUITE_REMOTE_USER@"




More information about the llvm-commits mailing list