Merge Increase timeout in test-logprof.py

On (terribly, but real-world) slow buid hosts, running test-logprof.py
fails with a timeout. Increase the timeout so that even those build
hosts get enough time to finish the aa-logprof tests.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1087
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
John Johansen 2023-08-17 11:04:14 +00:00
commit 1758b66c9d

View file

@ -65,7 +65,7 @@ class TestLogprof(AATest):
self.process.stdin.close()
self.process.stdout.close()
self.process.terminate()
self.process.wait(timeout=0.2)
self.process.wait(timeout=0.3)
def _run_test(self, params, expected):
auditlog = './logprof/%s.auditlog' % params
@ -96,7 +96,7 @@ class TestLogprof(AATest):
raise Exception('Unknown line in json log %s: %s' % (jsonlog, line))
# give logprof some time to write the updated profile and terminate
self.process.wait(timeout=0.2)
self.process.wait(timeout=0.3)
self.assertEqual(self.process.returncode, 0)
for file in expected: