From d2b9adf6f2c79fc8dd80ea7450a21244cde162cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 17 Nov 2024 14:08:49 +0100 Subject: [PATCH] Add a test to confirm that skel files added with the same path as a repository file do not override the repository file. Co-authored-by: iofq --- system/t06_publish/repo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/t06_publish/repo.py b/system/t06_publish/repo.py index 20fbdf1b..f882a428 100644 --- a/system/t06_publish/repo.py +++ b/system/t06_publish/repo.py @@ -905,6 +905,7 @@ class PublishRepo34Test(BaseTest): super(PublishRepo34Test, self).prepare_fixture() self.write_file(os.path.join('skel', 'dists', 'maverick', 'main', 'dep11', 'README'), 'README test file') + self.write_file(os.path.join('skel', 'dists', 'maverick', 'Release'), 'Release test file') def check(self): super(PublishRepo34Test, self).check() @@ -917,6 +918,10 @@ class PublishRepo34Test(BaseTest): if readme != 'README test file': raise Exception("README file not copied on publish") + release = self.read_file('public/dists/maverick/Release') + if release == 'Release test file': + raise Exception("Release file was copied on publish") + release = self.read_file('public/dists/maverick/Release').split("\n") release = [l for l in release if l.startswith(" ")] pathsSeen = set()