tests: mark test-check-interfaces.py as requiring a repo stable
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 24 Apr 2018 08:20:15 -0700
branchstable
changeset 37814 265c122b69aa
parent 37813 58bbd14b0c62
child 37815 32a75a8a5b0f
tests: mark test-check-interfaces.py as requiring a repo This was failing our 4.6rc1 build like this: mercurial.error.RepoError: repository /tmp/build-debs.zMTRhC/src-4.6rc1 not found Differential Revision: https://phab.mercurial-scm.org/D3425
tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py	Mon Apr 23 19:23:18 2018 +0100
+++ b/tests/test-check-interfaces.py	Tue Apr 24 08:20:15 2018 -0700
@@ -6,6 +6,13 @@
 encoding.environ[b'HGREALINTERFACES'] = b'1'
 
 import os
+import subprocess
+import sys
+
+# Only run if tests are run in a repo
+if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'],
+                    'test-repo']):
+    sys.exit(80)
 
 from mercurial.thirdparty.zope import (
     interface as zi,