# HG changeset patch # User David M. Carr <david@carrclan.us> # Date 1343789715 14400 # Tue Jul 31 22:55:15 2012 -0400 # Node ID af0e70e5b8b7b7124ffbba39df0af0c7db9c4024 # Parent ac16efd25cc40ecbe32d19079f9fd00f44fa36d1 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. diff --git a/tests/test-pull-after-strip b/tests/test-pull-after-strip --- 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