aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-10-24 12:52:10 -0700
committerZac Medico <zmedico@gentoo.org>2019-10-24 12:53:57 -0700
commite69ec2d046626fa2079d460aab469d04256182cd (patch)
treeceb4255223636beeebf90383156603f2763a888b /tests
parentUpdate version for 2.2.5 release (diff)
downloadmirrorselect-e69ec2d046626fa2079d460aab469d04256182cd.tar.gz
mirrorselect-e69ec2d046626fa2079d460aab469d04256182cd.tar.bz2
mirrorselect-e69ec2d046626fa2079d460aab469d04256182cd.zip
write_make_conf: fix infinite loop (bug 698470)
Fixes: 42238f4ff13a ("write_make_conf: support multi-line GENTOO_MIRRORS (bug 543814)") Bug: https://bugs.gentoo.org/698470 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_write_make_conf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_write_make_conf.py b/tests/test_write_make_conf.py
index 3dedd93..fb84978 100644
--- a/tests/test_write_make_conf.py
+++ b/tests/test_write_make_conf.py
@@ -23,6 +23,7 @@ class WriteMakeConfTestCase(unittest.TestCase):
('\n{}="foo \\\nbar"\n'.format(var), '\n{}\n'.format(mirror_string)),
('\n\n{}="foo \\\nbar"\n'.format(var), '\n\n{}\n'.format(mirror_string)),
('\n\n{}="foo \\\nbar"\na="b"\n'.format(var), '\n\na="b"\n{}\n'.format(mirror_string)),
+ ('', '{}\n'.format(mirror_string)),
)
for make_conf, expected_result in cases: