aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index a2c752aeebc..3351984290d 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -734,8 +734,9 @@ class MachCommands(CommandBase):
# On Linux and mac, find the OSMesa software rendering library and
# add it to the dynamic linker search path.
try:
- args = [self.get_binary_path(use_release, not use_release)]
- set_osmesa_env(args[0], os.environ)
+ bin_path = self.get_binary_path(use_release, not use_release)
+ if not set_osmesa_env(bin_path, os.environ):
+ print("Warning: Cannot set the path to OSMesa library.")
except BuildNotFound:
# This can occur when cross compiling (e.g. arm64), in which case
# we won't run the tests anyway so can safely ignore this step.