do not allow restart on windows

This commit is contained in:
Kevin Froman 2020-02-05 20:31:38 -06:00
parent 938e1bddd3
commit 7c7e5de091
10 changed files with 83 additions and 11 deletions

View file

@ -10,6 +10,7 @@ from onionrutils import epoch
from . import uicheck, inserttest, stresstest
from . import ownnode
from .webpasstest import webpass_test
from .osver import test_os_ver_endpoint
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -30,7 +31,8 @@ RUN_TESTS = [uicheck.check_ui,
ownnode.test_tor_adder,
ownnode.test_own_node,
stresstest.stress_test_block_insert,
webpass_test
webpass_test,
test_os_ver_endpoint
]
SUCCESS_FILE = os.path.dirname(os.path.realpath(__file__)) + '/../../tests/runtime-result.txt'

8
src/runtests/osver.py Normal file
View file

@ -0,0 +1,8 @@
import platform
from onionrutils import localcommand
def test_os_ver_endpoint(test_manager):
if localcommand.local_command('os') != platform.system().lower():
raise ValueError('could not get proper os platform from endpoint /os')