Merge pull request #273 from erijo/legacy_path_warnings

This commit is contained in:
Tim Byrne 2020-12-27 21:13:32 -06:00
commit 7184eb59d7
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
2 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, override, legacy_path):
"""
run = runner(command=['bash'], inp=script)
assert run.success
assert run.err == ''
assert run.out == ''
if legacy_path and (not upgrade) and (not override):
assert 'Legacy paths have been detected' in run.out
assert 'Legacy paths have been detected' in run.err
else:
assert 'Legacy paths have been detected' not in run.out
assert 'Legacy paths have been detected' not in run.err

2
yadm
View File

@ -1506,7 +1506,7 @@ function issue_legacy_path_warning() {
path_list="$path_list * $legacy_path"$'\n'
done
cat <<EOF
cat <<EOF >&2
**WARNING**
Legacy paths have been detected.