From: Michael Tremer Date: Wed, 19 Oct 2022 14:15:47 +0000 (+0000) Subject: tests: build: Include a log file into finished build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f23bbb212b0a4565d5b3649813ab236b52a1645;p=pbs.git tests: build: Include a log file into finished build Signed-off-by: Michael Tremer --- diff --git a/tests/build.py b/tests/build.py index f8343b4e..f744b777 100755 --- a/tests/build.py +++ b/tests/build.py @@ -153,11 +153,16 @@ class BuildTestCase(test.TestCase): path = self.source_path("tests/data/beep-1.3-2.ip3.x86_64.pfm") # Upload a package - upload = await self._create_upload(path) + package = await self._create_upload(path) + + # Upload the log + log = await self._create_upload( + self.source_path("tests/data/beep-1.3-2.ip3.x86_64.log"), + ) # Pretend that all jobs finished for job in build.jobs: - await job.finished(success=True, packages=[upload]) + await job.finished(success=True, packages=[package], log=log) if __name__ == "__main__":