D10507: tests: don't hard-code /bin/bash
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Wed Apr 28 15:08:05 UTC 2021
joerg.sonnenberger created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
Alphare accepted this revision.
This revision is now accepted and ready to land.
joerg.sonnenberger closed this revision.
joerg.sonnenberger added a comment.
Merged as 77e73827a02d <https://phab.mercurial-scm.org/rHG77e73827a02db25dc675b0afe552f24c807c741d>
REVISION SUMMARY
From Thomas Klausner in pkgsrc.
REPOSITORY
rHG Mercurial
BRANCH
stable
REVISION DETAIL
https://phab.mercurial-scm.org/D10507
AFFECTED FILES
tests/test-transaction-rollback-on-sigpipe.t
CHANGE DETAILS
diff --git a/tests/test-transaction-rollback-on-sigpipe.t b/tests/test-transaction-rollback-on-sigpipe.t
--- a/tests/test-transaction-rollback-on-sigpipe.t
+++ b/tests/test-transaction-rollback-on-sigpipe.t
@@ -22,14 +22,14 @@
$ killable_pipe=`pwd`/killable_pipe.sh
$ script $killable_pipe <<EOF
- > #!/bin/bash
+ > #!/usr/bin/env bash
> echo \$\$ >> $pidfile
> exec cat
> EOF
$ remotecmd=`pwd`/remotecmd.sh
$ script $remotecmd <<EOF
- > #!/bin/bash
+ > #!/usr/bin/env bash
> hg "\$@" 1> >($killable_pipe) 2> >($killable_pipe >&2)
> EOF
@@ -38,7 +38,7 @@
$ hook_script=`pwd`/pretxnchangegroup.sh
$ script $hook_script <<EOF
- > #!/bin/bash
+ > #!/usr/bin/env bash
> for pid in \$(cat $pidfile) ; do
> kill \$pid
> while kill -0 \$pid 2>/dev/null ; do
To: joerg.sonnenberger, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list