1
0
Fork 0
mirror of synced 2024-12-22 06:31:07 -05:00

Confirm LEGACY_WARNING_ISSUED is set appropriately

This commit is contained in:
Tim Byrne 2019-12-04 08:43:22 -06:00
parent 66a3969c8a
commit c1f779521c
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

View file

@ -29,11 +29,13 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, legacy_path):
YADM_TEST=1 source {yadm}
{main_args}
issue_legacy_path_warning
echo "LWI:$LEGACY_WARNING_ISSUED"
"""
run = runner(command=['bash'], inp=script)
assert run.success
assert run.err == ''
if legacy_path and not upgrade:
assert 'Legacy configuration paths have been detected' in run.out
assert 'LWI:1' in run.out
else:
assert run.out.rstrip() == ''
assert run.out.rstrip() == 'LWI:0'