From: Michael Tremer Date: Wed, 19 Oct 2022 14:34:44 +0000 (+0000) Subject: tests: Check if we don't have a log file before uploading one X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c3fb493c0ed5a12dd2f61fb63ff69be7a5b7c4c;p=pbs.git tests: Check if we don't have a log file before uploading one Signed-off-by: Michael Tremer --- diff --git a/tests/build.py b/tests/build.py index 18a0c6e9..44dc381b 100755 --- a/tests/build.py +++ b/tests/build.py @@ -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"), diff --git a/tests/data/beep-1.3-2.ip3.src.pfm b/tests/data/beep-1.3-2.ip3.src.pfm index a9c1d0e0..ac33ee6c 100644 Binary files a/tests/data/beep-1.3-2.ip3.src.pfm and b/tests/data/beep-1.3-2.ip3.src.pfm differ