[PATCH] test-commandserver.py: disable on Windows
Adrian Buehlmann
adrian at cadifra.com
Sat Jun 2 16:25:02 UTC 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1338654080 -7200
# Node ID d0f48bed4f906ea778cc7b618c1d96676de4b137
# Parent 2c1cb3d59c43581cb6d27a8216005ee862498f9c
test-commandserver.py: disable on Windows
Fails with
--- C:\Users\adi\hgrepos\hg-main\tests\test-commandserver.py.out
+++ C:\Users\adi\hgrepos\hg-main\tests\test-commandserver.py.err
@@ -87,9 +87,7 @@
testing hookoutput:
runcommand --config hooks.pre-identify=python:test-commandserver.hook id
-hook talking
-now try to read something: 'some input'
-eff892de26ec tip
+abort: pre-identify hook is invalid (import of "test-commandserver" failed)
testing outsidechanges:
Now, it is skipped like this:
$ python run-tests.py --local test-commandserver.py
s
Skipped test-commandserver.py: python hook testing not implemented
# Ran 0 tests, 1 skipped, 0 failed.
diff --git a/tests/test-commandserver.py b/tests/test-commandserver.py
--- a/tests/test-commandserver.py
+++ b/tests/test-commandserver.py
@@ -237,6 +237,10 @@
runcommand(server, ['status', '-i', '-u'])
if __name__ == '__main__':
+ if os.name == 'nt':
+ sys.stderr.write("skipped: python hook testing not implemented")
+ sys.exit(80) # skip test on Windows
+
os.system('hg init')
check(hellomessage)
More information about the Mercurial-devel
mailing list