Drop Ubuntu 18 tests

Tweek version_check to only output 1st char of the reported version

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-09-03 12:55:17 +01:00
parent 46e1a87e9e
commit 0f74165c9d
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173
4 changed files with 5 additions and 27 deletions

View file

@ -885,7 +885,10 @@ def test_FTL_binary_installed_and_responsive_no_errors(host):
theRest="${funcOutput%pihole-FTL*}"
FTLdetect "${binary}" "${theRest}"
''')
version_check = host.run('pihole-FTL version')
version_check = host.run('''
VERSION=$(pihole-FTL version)
echo ${VERSION:0:1}
''')
expected_stdout = 'v'
assert expected_stdout in version_check.stdout