We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b52c95 commit 7ef0088Copy full SHA for 7ef0088
src/rez/tests/test_shells.py
@@ -607,6 +607,18 @@ def _make_alias(ex):
607
out, _ = p.communicate()
608
self.assertEqual(1, p.returncode)
609
610
+ @per_available_shell()
611
+ def test_find_executable_config_override(self, shell):
612
+ """Test the shell plugin returns correct exec override from settings."""
613
+ config.override("default_shell", shell)
614
+ override_attr = "plugins.shell.{}.executable_fullpath".format(shell)
615
+ cls = type(create_shell(shell))
616
+ with tempfile.TemporaryDirectory() as td:
617
+ exe_path = os.path.join(td, cls.executable_name())
618
+ with open(exe_path, 'w'):
619
+ config.override(override_attr, exe_path)
620
+ assert cls.find_executable(cls.executable_name()) == exe_path
621
+
622
623
if __name__ == '__main__':
624
unittest.main()
0 commit comments