Issue legacy path warnings to stderr
To make it possible to ignore the warning e.g. when running yadm introspect repo in the bash completion.
This commit is contained in:
parent
df2ff5ec70
commit
5e9c5cf66c
2 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,8 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, override, legacy_path):
|
||||||
"""
|
"""
|
||||||
run = runner(command=['bash'], inp=script)
|
run = runner(command=['bash'], inp=script)
|
||||||
assert run.success
|
assert run.success
|
||||||
assert run.err == ''
|
assert run.out == ''
|
||||||
if legacy_path and (not upgrade) and (not override):
|
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:
|
else:
|
||||||
assert 'Legacy paths have been detected' not in run.out
|
assert 'Legacy paths have been detected' not in run.err
|
||||||
|
|
2
yadm
2
yadm
|
@ -1506,7 +1506,7 @@ function issue_legacy_path_warning() {
|
||||||
path_list="$path_list * $legacy_path"$'\n'
|
path_list="$path_list * $legacy_path"$'\n'
|
||||||
done
|
done
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF >&2
|
||||||
|
|
||||||
**WARNING**
|
**WARNING**
|
||||||
Legacy paths have been detected.
|
Legacy paths have been detected.
|
||||||
|
|
Loading…
Reference in a new issue