@@ -1033,15 +1033,15 @@ def test_check_linked_shared_libs(self):
1033
1033
self .assertEqual (check_linked_shared_libs (txt_path ), None )
1034
1034
self .assertEqual (check_linked_shared_libs (broken_symlink_path ), None )
1035
1035
1036
- bin_ls_path = which ('ls ' )
1036
+ bin_bash_path = which ('bash ' )
1037
1037
1038
1038
os_type = get_os_type ()
1039
1039
if os_type == LINUX :
1040
1040
with self .mocked_stdout_stderr ():
1041
- res = run_shell_cmd ("ldd %s" % bin_ls_path )
1041
+ res = run_shell_cmd ("ldd %s" % bin_bash_path )
1042
1042
elif os_type == DARWIN :
1043
1043
with self .mocked_stdout_stderr ():
1044
- res = run_shell_cmd ("otool -L %s" % bin_ls_path )
1044
+ res = run_shell_cmd ("otool -L %s" % bin_bash_path )
1045
1045
else :
1046
1046
raise EasyBuildError ("Unknown OS type: %s" % os_type )
1047
1047
@@ -1061,7 +1061,7 @@ def test_check_linked_shared_libs(self):
1061
1061
self .assertEqual (check_linked_shared_libs (self .test_prefix , ** pattern_named_args ), None )
1062
1062
self .assertEqual (check_linked_shared_libs (txt_path , ** pattern_named_args ), None )
1063
1063
self .assertEqual (check_linked_shared_libs (broken_symlink_path , ** pattern_named_args ), None )
1064
- for path in (bin_ls_path , lib_path ):
1064
+ for path in (bin_bash_path , lib_path ):
1065
1065
# path may not exist, especially for library paths obtained via 'otool -L' on macOS
1066
1066
if os .path .exists (path ):
1067
1067
error_msg = "Check on linked libs should pass for %s with %s" % (path , pattern_named_args )
@@ -1078,7 +1078,7 @@ def test_check_linked_shared_libs(self):
1078
1078
self .assertEqual (check_linked_shared_libs (self .test_prefix , ** pattern_named_args ), None )
1079
1079
self .assertEqual (check_linked_shared_libs (txt_path , ** pattern_named_args ), None )
1080
1080
self .assertEqual (check_linked_shared_libs (broken_symlink_path , ** pattern_named_args ), None )
1081
- for path in (bin_ls_path , lib_path ):
1081
+ for path in (bin_bash_path , lib_path ):
1082
1082
error_msg = "Check on linked libs should fail for %s with %s" % (path , pattern_named_args )
1083
1083
self .assertFalse (check_linked_shared_libs (path , ** pattern_named_args ), error_msg )
1084
1084
0 commit comments