diff options
Diffstat (limited to 'tests/functional/utils/ceedutil.py')
-rw-r--r-- | tests/functional/utils/ceedutil.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/functional/utils/ceedutil.py b/tests/functional/utils/ceedutil.py deleted file mode 100644 index ea75b90..0000000 --- a/tests/functional/utils/ceedutil.py +++ /dev/null @@ -1,20 +0,0 @@ -# some shared utility functions -import subprocess - -ToolchainNameBase="crops-toolchain-test" -ToolchainNumber=4 -CodiPort=10000 -def cmd_exists(cmd): - return subprocess.call ("command -v "+cmd,shell=True, - stdout=subprocess.PIPE,stderr=subprocess.PIPE)==0 - -def getDockerMachineAddress(): - machine_name=subprocess.check_output(['docker-machine','active']) - ADDRESS=subprocess.check_output(['docker-machine','ip',machine_name.strip()]) - return ADDRESS - -def getDockerAddress(): - ADDRESS="127.0.0.1" - if cmd_exists('docker-machine'): - ADDRESS=getDockerMachineAddress() - return ADDRESS |