##// END OF EJS Templates
tests: Skip tests if they will fail because of outer repo...
Mads Kiilerich -
r7429:dbc40381 default
parent child Browse files
Show More
@@ -154,6 +154,9 b' def has_pygments():'
154 154 except ImportError:
155 155 return False
156 156
157 def has_outer_repo():
158 return matchoutput('hg root 2>&1', r'')
159
157 160 checks = {
158 161 "baz": (has_baz, "GNU Arch baz client"),
159 162 "bzr": (has_bzr, "Canonical's Bazaar client"),
@@ -169,6 +172,7 b' checks = {'
169 172 "inotify": (has_inotify, "inotify extension support"),
170 173 "lsprof": (has_lsprof, "python lsprof module"),
171 174 "mtn": (has_mtn, "monotone client (> 0.31)"),
175 "outer-repo": (has_outer_repo, "outer repo"),
172 176 "pygments": (has_pygments, "Pygments source highlighting library"),
173 177 "svn": (has_svn, "subversion client and admin tools"),
174 178 "svn-bindings": (has_svn_bindings, "subversion python bindings"),
@@ -1,6 +1,6 b''
1 1 #!/bin/sh
2 2
3 "$TESTDIR/hghave" svn svn-bindings || exit 80
3 "$TESTDIR/hghave" svn svn-bindings no-outer-repo || exit 80
4 4
5 5 fixpath()
6 6 {
@@ -1,6 +1,8 b''
1 1 #!/bin/sh
2 2 # test command parsing and dispatch
3 3
4 "$TESTDIR/hghave" no-outer-repo || exit 80
5
4 6 hg init a
5 7 cd a
6 8 echo a > a
@@ -1,6 +1,8 b''
1 1 #!/bin/sh
2 2 # Test basic extension support
3 3
4 "$TESTDIR/hghave" no-outer-repo || exit 80
5
4 6 cat > foobar.py <<EOF
5 7 import os
6 8 from mercurial import commands
@@ -1,5 +1,7 b''
1 1 #!/bin/sh
2 2
3 "$TESTDIR/hghave" no-outer-repo || exit 80
4
3 5 hg init a
4 6 cd a
5 7 echo a > a
@@ -70,6 +70,8 b''
70 70 # |/
71 71 # o (0) root
72 72
73 "$TESTDIR/hghave" no-outer-repo || exit 80
74
73 75 set -e
74 76
75 77 commit()
General Comments 0
You need to be logged in to leave comments. Login now