]> arthur.barton.de Git - bup.git/commitdiff
test-save-errors: fix shebang for freebsd
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 16 Mar 2020 21:09:02 +0000 (22:09 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Apr 2020 20:52:14 +0000 (15:52 -0500)
It appears that freebsd doesn't support recursive interpreters,
so you cannot use a shell script directly as one. Instead, to
fix it, invoke it via /usr/bin/env.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
t/test-save-errors

index cafd227a0198da97ad301cc724e1f61d68e81fef..cafc306104a1a077a548e64f60d76858c9ca48e4 100755 (executable)
@@ -33,7 +33,7 @@ WVPASS bup index "$tmpdir/save"
 # essentially, we create a bup-save command for ourselves
 # that gets an error for the .../5 file in metadata.from_path()
 cat > "$tmpdir/bup-save" << EOF
-#!$top/cmd/bup-python
+#!/usr/bin/env $top/cmd/bup-python
 from bup import metadata
 orig_from_path = metadata.from_path
 def from_path(path, *args, **kw):
@@ -69,7 +69,7 @@ WVPASS bup index --clear
 WVPASS bup index "$tmpdir/save"
 
 cat > "$tmpdir/bup-save" << EOF
-#!$top/cmd/bup-python
+#!/usr/bin/env $top/cmd/bup-python
 from bup import metadata
 orig_from_path = metadata.from_path
 def from_path(path, *args, **kw):
@@ -101,7 +101,7 @@ WVPASS bup index --clear
 WVPASS bup index "$tmpdir/save"
 
 cat > "$tmpdir/bup-save" << EOF
-#!$top/cmd/bup-python
+#!/usr/bin/env $top/cmd/bup-python
 from bup import index
 
 Reader = index.Reader