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:
Diffstat (limited to 'build_files/buildbot/worker_test.py')
-rw-r--r--build_files/buildbot/worker_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_files/buildbot/worker_test.py b/build_files/buildbot/worker_test.py
index b959568a5c6..db02801007e 100644
--- a/build_files/buildbot/worker_test.py
+++ b/build_files/buildbot/worker_test.py
@@ -22,18 +22,21 @@ import buildbot_utils
import os
import sys
+
def get_ctest_arguments(builder):
args = ['--output-on-failure']
if builder.platform == 'win':
args += ['-C', 'Release']
return args
+
def test(builder):
os.chdir(builder.build_dir)
command = builder.command_prefix + ['ctest'] + get_ctest_arguments(builder)
buildbot_utils.call(command)
+
if __name__ == "__main__":
builder = buildbot_utils.create_builder_from_arguments()
test(builder)