diff options
author | Chris Green <greenc@fnal.gov> | 2019-11-30 13:00:08 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-11-30 13:00:08 -0600 |
commit | c5da94eb585d503248234ce18f24ffff4bd1f47c (patch) | |
tree | 1e656c350191432fcc9604f775b14c52931a74c0 /lib | |
parent | 46617b6f122e58cdfe94ceec4a6b48ca1a4645b6 (diff) | |
download | spack-c5da94eb585d503248234ce18f24ffff4bd1f47c.tar.gz spack-c5da94eb585d503248234ce18f24ffff4bd1f47c.tar.bz2 spack-c5da94eb585d503248234ce18f24ffff4bd1f47c.tar.xz spack-c5da94eb585d503248234ce18f24ffff4bd1f47c.zip |
Armor test script against shebang character limit if appropriate. (#12447)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/util/executable.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 sys 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 @@ print(u'\\xc3') # 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) |