From: Zooko O'Whielacronx Date: Tue, 27 Jan 2009 21:37:17 +0000 (-0700) Subject: setup: fix test_runner to invoke bin/tahoe.exe instead of bin/tahoe if on Windows... X-Git-Tag: allmydata-tahoe-1.3.0~136 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/simplejson/encoder.py.html?a=commitdiff_plain;h=64d12a94021b499a043ff7fd6aaa107d89fda51c;p=tahoe-lafs%2Ftahoe-lafs.git setup: fix test_runner to invoke bin/tahoe.exe instead of bin/tahoe if on Windows (this is what happens when a user invokes bin/tahoe on Windows) --- diff --git a/src/allmydata/test/test_runner.py b/src/allmydata/test/test_runner.py index 1cada529..ec6f0dd1 100644 --- a/src/allmydata/test/test_runner.py +++ b/src/allmydata/test/test_runner.py @@ -4,7 +4,7 @@ from twisted.trial import unittest from cStringIO import StringIO from twisted.python import runtime from twisted.internet import utils -import os.path, re +import os.path, re, sys from allmydata.scripts import runner from allmydata.util import fileutil, pollmixin @@ -12,6 +12,8 @@ from allmydata.test import common_util import allmydata bintahoe = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(allmydata.__file__))), 'bin', 'tahoe') +if sys.platform == "win32": + bintahoe += ".exe" class TheRightCode(unittest.TestCase, common_util.SignalMixin): def test_path(self):