qa: Run gen_rpcauth with sys.executable
This commit is contained in:
parent
fada8966c5
commit
facb56ffaf
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ import subprocess
|
||||||
from random import SystemRandom
|
from random import SystemRandom
|
||||||
import string
|
import string
|
||||||
import configparser
|
import configparser
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class HTTPBasicsTest(BitcoinTestFramework):
|
class HTTPBasicsTest(BitcoinTestFramework):
|
||||||
|
@ -36,7 +37,7 @@ class HTTPBasicsTest(BitcoinTestFramework):
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read_file(open(self.options.configfile))
|
config.read_file(open(self.options.configfile))
|
||||||
gen_rpcauth = config['environment']['RPCAUTH']
|
gen_rpcauth = config['environment']['RPCAUTH']
|
||||||
p = subprocess.Popen([gen_rpcauth, self.user], stdout=subprocess.PIPE, universal_newlines=True)
|
p = subprocess.Popen([sys.executable, gen_rpcauth, self.user], stdout=subprocess.PIPE, universal_newlines=True)
|
||||||
lines = p.stdout.read().splitlines()
|
lines = p.stdout.read().splitlines()
|
||||||
rpcauth3 = lines[1]
|
rpcauth3 = lines[1]
|
||||||
self.password = lines[3]
|
self.password = lines[3]
|
||||||
|
|
Loading…
Reference in a new issue