Patchwork D3425: tests: mark test-check-interfaces.py as requiring a repo

login
register
mail settings
Submitter phabricator
Date April 25, 2018, 2:53 a.m.
Message ID <c2099f55ef78a7a94c1e575ad764fedf@localhost.localdomain>
Download mbox | patch
Permalink /patch/31224/
State Not Applicable
Headers show

Comments

phabricator - April 25, 2018, 2:53 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG265c122b69aa: tests: mark test-check-interfaces.py as requiring a repo (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3425?vs=8424&id=8427

REVISION DETAIL
  https://phab.mercurial-scm.org/D3425

AFFECTED FILES
  tests/test-check-interfaces.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/tests/test-check-interfaces.py b/tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py
+++ b/tests/test-check-interfaces.py
@@ -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,