aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/functional_tests_rpc.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-22 14:35:23 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-22 15:29:44 +0000
commit22b644f47ee2de8a962d00588579076e7a55455a (patch)
tree58f6a880906e24280ff057db54dd34b738ce0300 /tests/functional_tests/functional_tests_rpc.py
parentfunctional_tests: add balance tests (diff)
downloadmonero-22b644f47ee2de8a962d00588579076e7a55455a.tar.xz
functional_tests: move RPC API to utils, it is not test specific
Diffstat (limited to '')
-rwxr-xr-xtests/functional_tests/functional_tests_rpc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional_tests/functional_tests_rpc.py b/tests/functional_tests/functional_tests_rpc.py
index aae546a6b..606b19e45 100755
--- a/tests/functional_tests/functional_tests_rpc.py
+++ b/tests/functional_tests/functional_tests_rpc.py
@@ -7,6 +7,7 @@ import subprocess
from signal import SIGTERM
import socket
import string
+import os
USAGE = 'usage: functional_tests_rpc.py <python> <srcdir> <builddir> [<tests-to-run> | all]'
DEFAULT_TESTS = ['daemon_info', 'blockchain', 'wallet_address', 'integrated_address', 'mining', 'transfer', 'txpool', 'multisig', 'cold_signing', 'sign_message', 'proofs']
@@ -56,6 +57,11 @@ for i in range(N_WALLETS):
print('Starting servers...')
try:
+ PYTHONPATH = os.environ['PYTHONPATH'] if 'PYTHONPATH' in os.environ else ''
+ if len(PYTHONPATH) > 0:
+ PYTHONPATH += ':'
+ PYTHONPATH += '../../utils/python-rpc'
+ os.environ['PYTHONPATH'] = PYTHONPATH
for i in range(len(command_lines)):
#print('Running: ' + str(command_lines[i]))
processes.append(subprocess.Popen(command_lines[i], stdout = outputs[i]))