mirror of https://github.com/fail2ban/fail2ban
ENH: use the same python executable for setup.py test
This doesn't anyhow resolve gh-161 which was revealed consistently on Debian sytem after adding this testSetupInstallRootpull/225/head
parent
281d310b7e
commit
bdc86e5f1d
|
@ -64,7 +64,8 @@ class SetupTest(unittest.TestCase):
|
|||
def testSetupInstallRoot(self):
|
||||
if not self.setup: return # if verbose skip didn't work out
|
||||
tmp = tempfile.mkdtemp()
|
||||
os.system("%s install --root=%s >/dev/null" % (self.setup, tmp))
|
||||
os.system("%s %s install --root=%s >/dev/null"
|
||||
% (sys.executable, self.setup, tmp))
|
||||
|
||||
def addpath(l):
|
||||
return [os.path.join(tmp, x) for x in l]
|
||||
|
|
Loading…
Reference in New Issue