mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
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 testSetupInstallRoot
This commit is contained in:
parent
281d310b7e
commit
bdc86e5f1d
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue