diff options
author | Ravi Shankar <wafflespeanut@gmail.com> | 2016-12-15 12:40:37 +0530 |
---|---|---|
committer | Ravi Shankar <wafflespeanut@gmail.com> | 2016-12-15 18:53:14 +0530 |
commit | 000d46490e0d964d3ace93e7dac6b4ceaf27cc33 (patch) | |
tree | 1051e512e6ec55cf6e98ed83f7bb682de6c49aa7 /python/servo/testing_commands.py | |
parent | 4d165dbf363bac3ef88dd404f3a3cd35ee2f37f0 (diff) | |
download | servo-000d46490e0d964d3ace93e7dac6b4ceaf27cc33.tar.gz servo-000d46490e0d964d3ace93e7dac6b4ceaf27cc33.zip |
Warn when OSMesa library path cannot be set
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 5 |
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. |