Unverified Commit edff1296 authored by svetaro's avatar svetaro

SKALE-2003 Fix docker test

parent b295938f
...@@ -28,16 +28,18 @@ print("Running tests for branch " + BRANCH); ...@@ -28,16 +28,18 @@ print("Running tests for branch " + BRANCH);
assert subprocess.call(["docker", "image", "inspect", FULL_IMAGE_NAME]) == 0; assert subprocess.call(["docker", "image", "inspect", FULL_IMAGE_NAME]) == 0;
assert subprocess.call(["docker", "run", "-v", topDir + "/sgx_data:/usr/src/sdk/sgx_data", #assert subprocess.call(["docker", "run", "-v", topDir + "/sgx_data:/usr/src/sdk/sgx_data",
"-d", "--network=host", "skalenetwork/" + IMAGE_NAME +":" + TAG_POSTFIX]) == 0 # "-d", "--network=host", "skalenetwork/" + IMAGE_NAME +":" + TAG_POSTFIX]) == 0
time.sleep(5);
obj = subprocess.Popen(stdin=subprocess.PIPE) obj = subprocess.Popen(["docker", "run", "-v", topDir + "/sgx_data:/usr/src/sdk/sgx_data","-d", "--network=host", "skalenetwork/" + IMAGE_NAME +":" + TAG_POSTFIX], stdin=subprocess.PIPE)
obj.communicate(input="i confirm", timeout=1) obj.communicate(input="i confirm", timeout=5)
obj.terminate() obj.terminate()
obj.wait() obj.wait()
time.sleep(5);
assert os.path.isdir(topDir + '/sgx_data/sgxwallet.db') assert os.path.isdir(topDir + '/sgx_data/sgxwallet.db')
assert os.path.isdir(topDir + '/sgx_data/cert_data'); assert os.path.isdir(topDir + '/sgx_data/cert_data');
assert os.path.isdir(topDir + '/sgx_data/CSR_DB'); assert os.path.isdir(topDir + '/sgx_data/CSR_DB');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment