changeset 467:af0e70e5b8b7

tests: tweak which hg versions run test-pull-after-strip Without this change, the test is skipped for modern versions of Mercurial with minor version less than 5, despite the test actually passing for said versions.
author David M. Carr <david@carrclan.us>
date Tue, 31 Jul 2012 22:55:15 -0400
parents ac16efd25cc4
children f7f32bc9107b
files tests/test-pull-after-strip
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pull-after-strip
+++ b/tests/test-pull-after-strip
@@ -7,7 +7,7 @@
 cat > tmp.py <<EOF
 import sys
 v = sys.stdin.read().strip()[:-1]
-if v[1] == '.' and int(v[2]) > 4:
+if v[1] == '.' and ((int(v[0]) == 1 and int(v[2]) > 4) or int(v[0]) > 1):
   sys.exit(0)
 sys.exit(1)
 EOF