From c5da94eb585d503248234ce18f24ffff4bd1f47c Mon Sep 17 00:00:00 2001
From: Chris Green <greenc@fnal.gov>
Date: Sat, 30 Nov 2019 13:00:08 -0600
Subject: [PATCH] Armor test script against shebang character limit if
 appropriate. (#12447)

---
 lib/spack/spack/test/util/executable.py | 2 ++
 1 file changed, 2 insertions(+)

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)
-- 
GitLab