Confirm LEGACY_WARNING_ISSUED is set appropriately
This commit is contained in:
parent
66a3969c8a
commit
c1f779521c
1 changed files with 3 additions and 1 deletions
|
@ -29,11 +29,13 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, legacy_path):
|
||||||
YADM_TEST=1 source {yadm}
|
YADM_TEST=1 source {yadm}
|
||||||
{main_args}
|
{main_args}
|
||||||
issue_legacy_path_warning
|
issue_legacy_path_warning
|
||||||
|
echo "LWI:$LEGACY_WARNING_ISSUED"
|
||||||
"""
|
"""
|
||||||
run = runner(command=['bash'], inp=script)
|
run = runner(command=['bash'], inp=script)
|
||||||
assert run.success
|
assert run.success
|
||||||
assert run.err == ''
|
assert run.err == ''
|
||||||
if legacy_path and not upgrade:
|
if legacy_path and not upgrade:
|
||||||
assert 'Legacy configuration paths have been detected' in run.out
|
assert 'Legacy configuration paths have been detected' in run.out
|
||||||
|
assert 'LWI:1' in run.out
|
||||||
else:
|
else:
|
||||||
assert run.out.rstrip() == ''
|
assert run.out.rstrip() == 'LWI:0'
|
||||||
|
|
Loading…
Reference in a new issue