testing fixups
authormpm@selenic.com
Tue, 14 Jun 2005 13:44:37 -0800
changeset 332 6c869059beb4
parent 331 55f63f3b6a54
child 333 d60a3060f9e2
testing fixups -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 testing fixups Add note about running tests to README Fix issue with pipelines and set -x output stability Add note about stability issue to README manifest hash: 7e8d9da463b3110664e24978550faab3ef67a706 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCr0/FywK+sNU5EO8RAnWXAJ4toFrvgtsPfR3dYs9a81AsOrfiVQCfZKIf yJCboAnoJNSSjyUk42ALMxs= =YJ31 -----END PGP SIGNATURE-----
tests/README
tests/test-up-local-change
--- a/tests/README	Tue Jun 14 13:28:42 2005 -0800
+++ b/tests/README	Tue Jun 14 13:44:37 2005 -0800
@@ -1,5 +1,10 @@
 A simple testing framework
 
+To run the tests, do:
+
+cd tests/
+./run-tests
+
 This finds all scripts in the test directory named test-* and executes
 them. The scripts can be either shell scripts or Python. Each test is
 run in a temporary directory that is removed when the test is complete.
@@ -25,3 +30,7 @@
 
   use hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/" to strip dates
 
+- set -x and pipelines don't generate stable output
+
+  turn off set -x or break pipelines into pieces
+
--- a/tests/test-up-local-change	Tue Jun 14 13:28:42 2005 -0800
+++ b/tests/test-up-local-change	Tue Jun 14 13:44:37 2005 -0800
@@ -16,7 +16,8 @@
 hg init ../r1
 hg up
 echo abc > a
-hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
+hg diff > ../d
+sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d
 
 cd ../r1
 echo b > b
@@ -31,5 +32,6 @@
 hg -d up -m
 hg parents
 hg -v history
-hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
+hg diff > ../d
+sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d