aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-08-03 16:30:15 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-08-03 16:25:54 -0400
commitfacb56ffaff2e56d84a7626491b0363f13f26d0e (patch)
tree15f99e9f66daf5fbb1f04f12014c150dd46da5b8 /test
parentfada8966c51b49bdb68549039cf67ddb4b44421c (diff)
downloadbitcoin-facb56ffaff2e56d84a7626491b0363f13f26d0e.tar.xz
qa: Run gen_rpcauth with sys.executable
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/rpc_users.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/rpc_users.py b/test/functional/rpc_users.py
index 62d86467fc..9af7b85d5c 100755
--- a/test/functional/rpc_users.py
+++ b/test/functional/rpc_users.py
@@ -18,6 +18,7 @@ import subprocess
from random import SystemRandom
import string
import configparser
+import sys
class HTTPBasicsTest(BitcoinTestFramework):
@@ -36,7 +37,7 @@ class HTTPBasicsTest(BitcoinTestFramework):
config = configparser.ConfigParser()
config.read_file(open(self.options.configfile))
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()
rpcauth3 = lines[1]
self.password = lines[3]