summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-04 17:26:54 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-04 18:15:50 +0200
commitc17b5ab4db140f142f38cdc99468e63e66c91912 (patch)
tree1388155a22ec171872229350f5423dd2f208ebf4 /guix
parentd3bbe992ec33860aedccb26734a7a83d263e7ec3 (diff)
downloadpatches-c17b5ab4db140f142f38cdc99468e63e66c91912.tar
patches-c17b5ab4db140f142f38cdc99468e63e66c91912.tar.gz
tests: Skip tests that would hit the shebang length limitation.
* tests/gexp.scm (shebang): New variable. Skip "gexp->script" when SHEBANG is longer than 127 chars. * guix/gexp.scm (gexp->script): Add comment on the issue.
Diffstat (limited to 'guix')
-rw-r--r--guix/gexp.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/gexp.scm b/guix/gexp.scm
index a2ba50d957..3b154d400f 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -351,6 +351,10 @@ its search path."
(gexp
(call-with-output-file (ungexp output)
(lambda (port)
+ ;; Note: that makes a long shebang. When the store
+ ;; is /gnu/store, that fits within the 128-byte
+ ;; limit imposed by Linux, but that may go beyond
+ ;; when running tests.
(format port
"#!~a/bin/guile --no-auto-compile~%!#~%"
(ungexp guile))