changes by John Levon to standardize some erroroutput
authorPeter van Dijk <peter@dataloss.nl>
Wed, 22 Feb 2006 15:57:43 +0100
changeset 1926 ba198d17eea9
parent 1925 c71420b186b0
child 1927 397b62d5dd13
changes by John Levon to standardize some erroroutput
tests/test-clone
tests/test-clone.out
tests/test-copy
tests/test-empty-dir
tests/test-empty-dir.out
--- a/tests/test-clone	Wed Feb 22 15:42:48 2006 +0100
+++ b/tests/test-clone	Wed Feb 22 15:57:43 2006 +0100
@@ -16,7 +16,7 @@
 # No update
 hg clone -U . ../c
 cd ../c
-cat a
+cat a 2>/dev/null || echo "a not present"
 hg verify
 
 # Default destination
--- a/tests/test-clone.out	Wed Feb 22 15:42:48 2006 +0100
+++ b/tests/test-clone.out	Wed Feb 22 15:57:43 2006 +0100
@@ -4,7 +4,7 @@
 crosschecking files in changesets and manifests
 checking files
 1 files, 1 changesets, 1 total revisions
-cat: a: No such file or directory
+a not present
 checking changesets
 checking manifests
 crosschecking files in changesets and manifests
--- a/tests/test-copy	Wed Feb 22 15:42:48 2006 +0100
+++ b/tests/test-copy	Wed Feb 22 15:57:43 2006 +0100
@@ -20,7 +20,7 @@
 hg debugindex .hg/data/b.i
 
 echo "this should show the rename information in the metadata"
-hg debugdata .hg/data/b.d 0 | head -n 3 | tail -n 2
+hg debugdata .hg/data/b.d 0 | head -3 | tail -2
 
 $TESTDIR/md5sum.py .hg/data/b.d
 hg cat b > bsum
--- a/tests/test-empty-dir	Wed Feb 22 15:42:48 2006 +0100
+++ b/tests/test-empty-dir	Wed Feb 22 15:57:43 2006 +0100
@@ -10,7 +10,7 @@
 hg commit -m "second" -d "0 0" sub/b
 cat sub/b
 hg co 0
-cat sub/b
-ls sub
+cat sub/b 2>/dev/null || echo "sub/b not present"
+ls sub 2>/dev/null || echo "sub not present"
 
 true
--- a/tests/test-empty-dir.out	Wed Feb 22 15:42:48 2006 +0100
+++ b/tests/test-empty-dir.out	Wed Feb 22 15:57:43 2006 +0100
@@ -1,3 +1,3 @@
 321
-cat: sub/b: No such file or directory
-ls: sub: No such file or directory
+sub/b not present
+sub not present