kvm-test: don't require LIVEFS_EDITOR if not building

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2022-04-27 19:59:17 +02:00
parent 83dacb8c7c
commit 6165c0a423
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ def parse_args():
ctx.args.save = True
ctx.livefs_editor = os.environ.get('LIVEFS_EDITOR')
if not ctx.livefs_editor:
if not ctx.livefs_editor and ctx.args.build:
raise Exception('Obtain a copy of livefs-editor and point ' +
'LIVEFS_EDITOR to it\n'
'https://github.com/mwhudson/livefs-editor')