add test to check "os_check" works
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
33e5735053
commit
c9edcfa335
|
@ -561,3 +561,17 @@ def test_validate_ip_invalid_letters(Pihole):
|
|||
''')
|
||||
|
||||
assert output.rc == 1
|
||||
|
||||
def test_os_check_pases(Pihole):
|
||||
''' Confirms OS meets the requirements '''
|
||||
Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
distro_check
|
||||
install_dependent_packages ${INSTALLER_DEPS[@]}
|
||||
''')
|
||||
detectOS = Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
os_check
|
||||
''')
|
||||
expected_stdout = 'Supported OS detected'
|
||||
assert expected_stdout in detectOS.stdout
|
||||
|
|
Loading…
Reference in New Issue