diff --git a/tests/test-bad-pull b/tests/test-bad-pull
index 695dd9a491dad2a63fe7770149da096c194bf0da_dGVzdHMvdGVzdC1iYWQtcHVsbA==..085a8145e151145e74c79ff44b989c505696fa71_dGVzdHMvdGVzdC1iYWQtcHVsbA== 100755
--- a/tests/test-bad-pull
+++ b/tests/test-bad-pull
@@ -17,4 +17,5 @@
 run()
 EOF
 
+set +x # backgrounding sometimes disturbs the order of command tracing
 python dumb.py 2>/dev/null &
@@ -20,5 +21,5 @@
 python dumb.py 2>/dev/null &
-sleep 2
+set -x
 
 hg clone http://localhost:20059/foo copy2
 echo $?
diff --git a/tests/test-bad-pull.out b/tests/test-bad-pull.out
index 695dd9a491dad2a63fe7770149da096c194bf0da_dGVzdHMvdGVzdC1iYWQtcHVsbC5vdXQ=..085a8145e151145e74c79ff44b989c505696fa71_dGVzdHMvdGVzdC1iYWQtcHVsbC5vdXQ= 100644
--- a/tests/test-bad-pull.out
+++ b/tests/test-bad-pull.out
@@ -6,8 +6,7 @@
 + ls copy
 ls: copy: No such file or directory
 + cat
-+ python dumb.py
-+ sleep 2
++ set +x
 + hg clone http://localhost:20059/foo copy2
 requesting all changes
 abort: HTTP Error 404: File not found
diff --git a/tests/test-copy.out b/tests/test-copy.out
index 695dd9a491dad2a63fe7770149da096c194bf0da_dGVzdHMvdGVzdC1jb3B5Lm91dA==..085a8145e151145e74c79ff44b989c505696fa71_dGVzdHMvdGVzdC1jb3B5Lm91dA== 100644
--- a/tests/test-copy.out
+++ b/tests/test-copy.out
@@ -27,7 +27,6 @@
 
 
 + hg log a
-revision:    0:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
 changeset:   0:c19d34741b0a4ced8e4ba74bb834597d5193851e
 user:        test
 date:        Thu Jan  1 00:00:00 1970