Armor test script against shebang character limit if appropriate. (#12447)

This commit is contained in:
Chris Green 2019-11-30 13:00:08 -06:00 committed by Adam J. Stewart
parent 46617b6f12
commit c5da94eb58

View file

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