From 64d12a94021b499a043ff7fd6aaa107d89fda51c Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Tue, 27 Jan 2009 14:37:17 -0700 Subject: [PATCH] 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) --- src/allmydata/test/test_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.45.2