WIP: Tests: Add option to run GPU tests on buildbot #2
@ -57,14 +57,8 @@ def test(builder: worker.blender.CodeBuilder) -> None:
|
||||
os.chdir(builder.build_dir)
|
||||
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:
|
||||
builder.call(["ctest"] + get_ctest_arguments(builder), env=env)
|
||||
builder.call(["ctest"] + get_ctest_arguments(builder))
|
||||
success = True
|
||||
finally:
|
||||
package_for_upload(builder, success)
|
||||
|
Loading…
Reference in New Issue
Block a user