D1599: tests: remove shell function helper from test-largefiles-misc

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Dec 5 22:03:40 UTC 2017


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Now that all the complexity is in a Python script, we can just
  directly invoke the tool.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1599

AFFECTED FILES
  tests/test-largefiles-misc.t

CHANGE DETAILS

diff --git a/tests/test-largefiles-misc.t b/tests/test-largefiles-misc.t
--- a/tests/test-largefiles-misc.t
+++ b/tests/test-largefiles-misc.t
@@ -1094,12 +1094,8 @@
 
 Move (and then undo) a directory move with only largefiles.
 
-  $ listtree() {
-  >   $PYTHON $TESTDIR/list-tree.py $@
-  > }
-
   $ cd subrepo-root
-  $ listtree .hglf dir* large*
+  $ $PYTHON $TESTDIR/list-tree.py .hglf dir* large*
   .hglf/
   .hglf/dir/
   .hglf/dir/subdir/
@@ -1114,7 +1110,7 @@
   $ hg mv dir/subdir dir/subdir2
   moving .hglf/dir/subdir/large.bin to .hglf/dir/subdir2/large.bin (glob)
 
-  $ listtree .hglf dir* large*
+  $ $PYTHON $TESTDIR/list-tree.py .hglf dir* large*
   .hglf/
   .hglf/dir/
   .hglf/dir/subdir2/
@@ -1154,7 +1150,7 @@
 
 The standin for subdir2 should be deleted, not just dropped
 
-  $ listtree .hglf dir* large*
+  $ $PYTHON $TESTDIR/list-tree.py .hglf dir* large*
   .hglf/
   .hglf/dir/
   .hglf/dir/subdir/
@@ -1181,7 +1177,7 @@
   R dir/subdir/large.bin
   ? large.orig
 
-  $ listtree .hglf dir* large*
+  $ $PYTHON $TESTDIR/list-tree.py .hglf dir* large*
   .hglf/
   .hglf/dir/
   .hglf/dir/subdir2/
@@ -1206,7 +1202,7 @@
     dir/subdir/large.bin
   R dir/subdir/large.bin
 
-  $ listtree .hglf dir* large*
+  $ $PYTHON $TESTDIR/list-tree.py .hglf dir* large*
   .hglf/
   .hglf/dir2/
   .hglf/dir2/subdir/
@@ -1225,7 +1221,7 @@
   $ hg status -C
   ? dir2/subdir/large.bin
 
-  $ listtree .hglf dir* large*
+  $ $PYTHON $TESTDIR/list-tree.py .hglf dir* large*
   .hglf/
   .hglf/dir/
   .hglf/dir/subdir/



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list