mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 15:32:39 +00:00
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)
This commit is contained in:
parent
1ae08acc8f
commit
64d12a9402
@ -4,7 +4,7 @@ from twisted.trial import unittest
|
|||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
from twisted.python import runtime
|
from twisted.python import runtime
|
||||||
from twisted.internet import utils
|
from twisted.internet import utils
|
||||||
import os.path, re
|
import os.path, re, sys
|
||||||
from allmydata.scripts import runner
|
from allmydata.scripts import runner
|
||||||
from allmydata.util import fileutil, pollmixin
|
from allmydata.util import fileutil, pollmixin
|
||||||
|
|
||||||
@ -12,6 +12,8 @@ from allmydata.test import common_util
|
|||||||
import allmydata
|
import allmydata
|
||||||
|
|
||||||
bintahoe = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(allmydata.__file__))), 'bin', 'tahoe')
|
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):
|
class TheRightCode(unittest.TestCase, common_util.SignalMixin):
|
||||||
def test_path(self):
|
def test_path(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user