WIP: Tests: Add option to run GPU tests on buildbot #2

Closed
Brecht Van Lommel wants to merge 3 commits from gpu-tests into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 7797ddda30 - Show all commits

View File

@ -57,14 +57,8 @@ def test(builder: worker.blender.CodeBuilder) -> None:
os.chdir(builder.build_dir) os.chdir(builder.build_dir)
success = False success = False
env = os.environ.copy()
# Needed to successfully initialize EGL on Rocky Linux machine.
if builder.needs_gpu_tests and builder.platform == "linux":
env["DISPLAY"] = ":0"
try: try:
builder.call(["ctest"] + get_ctest_arguments(builder), env=env) builder.call(["ctest"] + get_ctest_arguments(builder))
success = True success = True
finally: finally:
package_for_upload(builder, success) package_for_upload(builder, success)