]> git.ipfire.org Git - pbs.git/commitdiff
tests: Check if we don't have a log file before uploading one
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 14:34:44 +0000 (14:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 14:34:44 +0000 (14:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/build.py
tests/data/beep-1.3-2.ip3.src.pfm

index 18a0c6e9a6970dd0a146b943afe9e6980c8397ec..44dc381b1e68ff4317d3207de6f6863d6525426a 100755 (executable)
@@ -194,6 +194,10 @@ class BuildTestCase(test.TestCase):
                # Pick the first job
                job = build.jobs[0]
 
+               # Check that there is no log
+               with self.assertRaises(FileNotFoundError):
+                       await job.open_log()
+
                # Upload the log
                log = await self._create_upload(
                        self.source_path("tests/data/beep-1.3-2.ip3.x86_64.log"),
index a9c1d0e026c1667c148d8d1638cc4ff0d3a4c5cf..ac33ee6c64f2dc02f89d6a748f70ee4c565fd715 100644 (file)
Binary files a/tests/data/beep-1.3-2.ip3.src.pfm and b/tests/data/beep-1.3-2.ip3.src.pfm differ