[Bf-blender-cvs] [7eb293a37b8] master: Build: output log file to tests/log.txt when running "make test"
Brecht Van Lommel
noreply at git.blender.org
Fri Sep 13 11:55:07 CEST 2019
Commit: 7eb293a37b868ffab53be056b85d6e1f5444f62f
Author: Brecht Van Lommel
Date: Fri Sep 13 10:22:44 2019 +0200
Branches: master
https://developer.blender.org/rB7eb293a37b868ffab53be056b85d6e1f5444f62f
Build: output log file to tests/log.txt when running "make test"
===================================================================
M build_files/utils/make_test.py
===================================================================
diff --git a/build_files/utils/make_test.py b/build_files/utils/make_test.py
index a18b1c8814a..b89afc738ce 100755
--- a/build_files/utils/make_test.py
+++ b/build_files/utils/make_test.py
@@ -61,8 +61,15 @@ if not os.path.exists(lib_tests_dirpath):
call([cmake_command, "."])
# Run tests
+tests_dir = os.path.join(build_dir, "tests")
+os.makedirs(tests_dir, exist_ok=True)
+
os.chdir(build_dir)
command = [ctest_command, ".", "--output-on-failure"]
if len(config):
command += ["-C", config]
+ tests_log = "log_" + config + ".txt"
+else:
+ tests_log = "log.txt"
+command += ["-O", os.path.join(tests_dir, tests_log)]
call(command)
More information about the Bf-blender-cvs
mailing list