mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Confirm LEGACY_WARNING_ISSUED is set appropriately
This commit is contained in:
parent
66a3969c8a
commit
c1f779521c
@ -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 New Issue
Block a user