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
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
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

5
yadm
View File

@ -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() {