diff --git a/lib/spack/spack/test/util/executable.py b/lib/spack/spack/test/util/executable.py index 054cdbfccd..1a9b636a7e 100644 --- a/lib/spack/spack/test/util/executable.py +++ b/lib/spack/spack/test/util/executable.py @@ -8,6 +8,7 @@ import llnl.util.filesystem as fs import spack.util.executable as ex +from spack.hooks.sbang import filter_shebangs_in_directory def test_read_unicode(tmpdir): @@ -28,6 +29,7 @@ def test_read_unicode(tmpdir): # make it executable fs.set_executable(script_name) + filter_shebangs_in_directory('.', [script_name]) # read the unicode back in and see whether things work script = ex.Executable('./%s' % script_name)