1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Remove unnecessary LEGACY_WARNING_ISSUED flag

This commit is contained in:
Tim Byrne
2020-11-25 23:08:38 -06:00
parent 13a3cdc8a8
commit 4cb13d5d08
2 changed files with 1 additions and 8 deletions

View File

@@ -31,13 +31,11 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, override, legacy_path):
{override}
set_yadm_dirs
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) and (not override):
assert 'Legacy paths have been detected' in run.out
assert 'LWI:1' in run.out
else:
assert run.out.rstrip() == 'LWI:0'
assert 'Legacy paths have been detected' not in run.out