mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #892 from c-po/optional-lsb-tests
Testsuite: T7043: make build/manifest.json optional
This commit is contained in:
commit
16f9226b1f
@ -105,11 +105,13 @@ with open('data/defaults.toml', 'rb') as f:
|
||||
vyos_defaults = tomli.load(f)
|
||||
|
||||
# This is what we got from the build
|
||||
with open('build/manifest.json', 'rb') as f:
|
||||
manifest_file = 'build/manifest.json'
|
||||
if os.path.isfile(manifest_file):
|
||||
with open('build/manifest.json', 'rb') as f:
|
||||
manifest = json.load(f)
|
||||
|
||||
vyos_version = manifest['build_config']['version']
|
||||
vyos_codename = manifest['build_config']['release_train']
|
||||
vyos_version = manifest['build_config']['version']
|
||||
vyos_codename = manifest['build_config']['release_train']
|
||||
|
||||
class StreamToLogger(object):
|
||||
"""
|
||||
@ -558,6 +560,7 @@ try:
|
||||
#################################################
|
||||
c.sendline('lsb_release --short --id 2>/dev/null')
|
||||
c.expect('VyOS')
|
||||
if os.path.isfile(manifest_file):
|
||||
c.sendline('lsb_release --short --release 2>/dev/null')
|
||||
c.expect(vyos_version)
|
||||
c.sendline('lsb_release --short --codename 2>/dev/null')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user