Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-13 11:22:44 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-13 12:46:22 +0300
commit7eb293a37b868ffab53be056b85d6e1f5444f62f (patch)
treeb402c2e49e3a9904022a6825dbfff81d48497fe3
parent577239d2ced993ffe795ee209b303ef1af55d962 (diff)
Build: output log file to tests/log.txt when running "make test"
-rwxr-xr-xbuild_files/utils/make_test.py7
1 files changed, 7 insertions, 0 deletions
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)