From 000d46490e0d964d3ace93e7dac6b4ceaf27cc33 Mon Sep 17 00:00:00 2001 From: Ravi Shankar Date: Thu, 15 Dec 2016 12:40:37 +0530 Subject: Warn when OSMesa library path cannot be set --- python/servo/testing_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/servo/testing_commands.py') 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. -- cgit v1.2.3