diff tests/test-largefiles.t @ 15372:695ac6aca77f stable

check-code: fix issues with finding patterns in unified tests, fix tests - old-style patterns without ^ were getting improperly anchored - finditer was matching against beginning of line poorly - \s was matching newlines - [^x] was matching newlines so we: - remove earlier hacks for multiline matching - fix unified test anchoring by adding .* - replace \s with [ \t] - replace [^x] with [^\nx] - force all matches into multiline mode so ^ anchors work This uncovers a number of test issues that are then repaired.
author Matt Mackall <mpm@selenic.com>
date Thu, 27 Oct 2011 17:22:04 -0500
parents 8af6c6d91c92
children 6cb8b46ea90a
line wrap: on
line diff
--- a/tests/test-largefiles.t	Tue Oct 25 11:45:28 2011 -0400
+++ b/tests/test-largefiles.t	Thu Oct 27 17:22:04 2011 -0500
@@ -751,7 +751,7 @@
   added 1 changesets with 1 changes to 1 files
   updating to branch default
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ kill $(cat serve.pid)
+  $ kill `cat serve.pid`
 
 largefiles clients still work with vanilla servers
   $ hg --config extensions.largefiles=! serve -R r1 -d -p 8001 --pid-file serve.pid
@@ -763,7 +763,7 @@
   added 1 changesets with 1 changes to 1 files
   updating to branch default
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ kill $(cat serve.pid)
+  $ kill `cat serve.pid`
 
 vanilla clients locked out from largefiles http repos
   $ mkdir r4
@@ -781,7 +781,7 @@
   
   Please enable it in your Mercurial config file.
   [255]
-  $ kill $(cat serve.pid)
+  $ kill `cat serve.pid`
 
 vanilla clients locked out from largefiles ssh repos
   $ hg --config extensions.largefiles=! clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/r4 r5
@@ -819,7 +819,7 @@
   abort: http://localhost:8001/ does not appear to be a largefile store
   [255]
   $ cd ..
-  $ kill $(cat serve.pid)
+  $ kill `cat serve.pid`
 
   $ cd ..
 
@@ -864,13 +864,13 @@
   $ hg commit -m "commit a large symlink"
   $ rm -f largelink
   $ hg up >/dev/null
-  $ test -e largelink
+  $ test -f largelink
   [1]
   $ test -L largelink
   [1]
   $ rm -f largelink # make next part of the test independent of the previous
   $ hg up -C >/dev/null
-  $ test -e largelink
+  $ test -f largelink
   $ test -L largelink
   $ cd ..