Commits

Augie Fackler  committed af41b2e

tests: use . instead of source to allow passing when /bin/sh is not bash

  • Participants
  • Parent commits 2f2aed6

Comments (0)

Files changed (8)

File tests/test-histedit-commute

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]
 pick 99a62755c625 c
 EOF
 HGEDITOR="cat $EDITED > " hg histedit --rev -2 2>&1 | fixbundle
-hg log --graph
+hg log --graph

File tests/test-histedit-drop

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]

File tests/test-histedit-edit

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]

File tests/test-histedit-fold

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]

File tests/test-histedit-fold-non-commute

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]

File tests/test-histedit-no-change

 # test for issue #6:
 # editing a changeset without any actual change would corrupt the repository
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]

File tests/test-histedit-non-commute

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]

File tests/test-histedit-non-commute-abort

 #!/bin/sh
 
-source "$TESTDIR/histedit-helpers.sh"
+. "$TESTDIR/histedit-helpers.sh"
 
 cat >> $HGRCPATH <<EOF
 [extensions]