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)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user