From 5c6c3d88fec83478f0983100ae133d6a8d519586 Mon Sep 17 00:00:00 2001 From: Ciju John Date: Wed, 10 Jan 2018 16:16:58 -0600 Subject: [PATCH] Update executable paths. Renamed script. --- tests/CMakeLists.txt | 1 + tests/{eosd_run_test.py => eosiod_run_test.py} | 0 tests/testUtils.py | 11 ++++++----- 3 files changed, 7 insertions(+), 5 deletions(-) rename tests/{eosd_run_test.py => eosiod_run_test.py} (100%) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3c077d55d..2d22c7d2b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -66,3 +66,4 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/trans_sync_across_mixed_cluster_test. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/distributed-transactions-test.py ${CMAKE_CURRENT_BINARY_DIR}/distributed-transactions-test.py COPYONLY) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/restart-scenarios-test.py ${CMAKE_CURRENT_BINARY_DIR}/restart-scenarios-test.py COPYONLY) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testUtils.py ${CMAKE_CURRENT_BINARY_DIR}/testUtils.py COPYONLY) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/eosiod_run_test.py ${CMAKE_CURRENT_BINARY_DIR}/eosiod_run_test.py COPYONLY) diff --git a/tests/eosd_run_test.py b/tests/eosiod_run_test.py similarity index 100% rename from tests/eosd_run_test.py rename to tests/eosiod_run_test.py diff --git a/tests/testUtils.py b/tests/testUtils.py index a70604252..b3d169a78 100755 --- a/tests/testUtils.py +++ b/tests/testUtils.py @@ -20,9 +20,10 @@ import json class Utils: Debug=False FNull = open(os.devnull, 'w') - EosClientPath="programs/eosc/eosc" - EosWalletPath="programs/eos-walletd/eos-walletd" - EosServerPath="programs/eosiod/eosiod" + EosClientPath="programs/eosioc/eosioc" + EosWalletPath="programs/eosio-walletd/eosio-walletd" + EosServerName="eosiod" + EosServerPath="programs/eosiod/%s" % (EosServerName) EosLauncherPath="programs/launcher/launcher" @staticmethod @@ -813,7 +814,7 @@ class Cluster(object): Utils.EosLauncherPath, pnodes, total_nodes, topo, delay) cmdArr=cmd.split() if not self.walletd: - cmdArr.append("--eosd") + cmdArr.append("--eosiod") cmdArr.append("--plugin eosio::wallet_api_plugin") Utils.Print("cmd: ", cmdArr) if 0 != subprocess.call(cmdArr): @@ -1169,7 +1170,7 @@ class Cluster(object): nodes=[] try: - cmd="pgrep -a eosd" + cmd="pgrep -a %s" % (Utils.EosServerName) Utils.Debug and Utils.Print("cmd: %s" % (cmd)) psOut=subprocess.check_output(cmd.split()).decode("utf-8") #Utils.Print("psOut: <%s>" % psOut) -- GitLab