bumped network version and main version, lots of test work and some stability improvements
This commit is contained in:
parent
e77d422fc2
commit
572e29f5d5
24 changed files with 243 additions and 33 deletions
18
tests/integration-tests/details-test.py
Normal file
18
tests/integration-tests/details-test.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import sys
|
||||
import os
|
||||
from subprocess import Popen, PIPE
|
||||
import uuid
|
||||
|
||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||
os.environ["ONIONR_HOME"] = TEST_DIR
|
||||
|
||||
print(f'running integration test for {__file__}')
|
||||
|
||||
with Popen(['./onionr.sh', 'details'], stdout=PIPE) as onionr_proc:
|
||||
output = onionr_proc.stdout.read().decode()
|
||||
if onionr_proc.returncode != 0:
|
||||
raise ValueError('Raised non zero exit ' + str(onionr_proc.returncode))
|
||||
|
||||
for word in ['Node', 'Human-readable']:
|
||||
if word not in output:
|
||||
raise ValueError(word + " not in " + output)
|
Loading…
Add table
Add a link
Reference in a new issue