Remove unnecessary LEGACY_WARNING_ISSUED flag
This commit is contained in:
parent
13a3cdc8a8
commit
4cb13d5d08
2 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
5
yadm
5
yadm
|
@ -61,8 +61,6 @@ ENCRYPT_INCLUDE_FILES="unparsed"
|
|||
GPG_OPTS=()
|
||||
OPENSSL_OPTS=()
|
||||
|
||||
LEGACY_WARNING_ISSUED=0
|
||||
|
||||
# flag causing path translations with cygpath
|
||||
USE_CYGPATH=0
|
||||
|
||||
|
@ -1595,9 +1593,6 @@ function issue_legacy_path_warning() {
|
|||
${path_list}
|
||||
***********
|
||||
EOF
|
||||
|
||||
LEGACY_WARNING_ISSUED=1
|
||||
|
||||
}
|
||||
|
||||
function configure_paths() {
|
||||
|
|
Loading…
Reference in a new issue