diff options
Diffstat (limited to 'build_files/buildbot/slave_test.py')
-rw-r--r-- | build_files/buildbot/slave_test.py | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/build_files/buildbot/slave_test.py b/build_files/buildbot/slave_test.py index ef7a4b23d04..6f313ede2ee 100644 --- a/build_files/buildbot/slave_test.py +++ b/build_files/buildbot/slave_test.py @@ -19,6 +19,7 @@ # <pep8 compliant> import subprocess +import os import sys # get builder name @@ -33,8 +34,26 @@ blender_dir = '../blender.git' if "cmake" in builder: # cmake - retcode = subprocess.call(['ctest', '.' '--output-on-failure']) + + print("Automated tests are still DISABLED!") + sys.exit(0) + + build_dir = os.path.abspath(os.path.join('..', 'build', builder)) + chroot_name = None + chroot_prefix = [] + + """ + if builder.endswith('x86_64_cmake'): + chroot_name = 'buildbot_squeeze_x86_64' + elif builder.endswith('i686_cmake'): + chroot_name = 'buildbot_squeeze_i686' + if chroot_name: + chroot_prefix = ['schroot', '-c', chroot_name, '--'] + """ + + os.chdir(build_dir) + retcode = subprocess.call(chroot_prefix + ['ctest', '--output-on-failure']) sys.exit(retcode) else: - # scons - pass + print("Unknown building system") + sys.exit(1) |