Armor test script against shebang character limit if appropriate. (#12447)
This commit is contained in:
parent
46617b6f12
commit
c5da94eb58
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue