log=log,
)
+ async def test_abort(self):
+ """
+ This test tries to abort a job
+ """
+ path = self.source_path("tests/data/beep-1.3-2.ip3.src.pfm")
+
+ # Create the build
+ with self.db.transaction():
+ build = await self._create_build(path, owner=self.user)
+
+ # Assign all jobs to the default builder
+ for job in build.jobs:
+ job.assign(self.builder)
+
+ # Abort all jobs
+ for job in build.jobs:
+ await job.abort(self.user)
+
+ self.assertTrue(job.is_aborted())
+ self.assertIsNotNone(job.aborted_at)
+
async def test_log(self):
"""
This test creates a build and tries to access the log