diff options
-rwxr-xr-x | test/test-exec-deserialization.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-exec-deserialization.py b/test/test-exec-deserialization.py index eea7ddc8b3..06a7d369f6 100755 --- a/test/test-exec-deserialization.py +++ b/test/test-exec-deserialization.py @@ -101,6 +101,10 @@ class ExecutionResumeTest(unittest.TestCase): def check_output(self, expected_output): for _ in range(15): + # Wait until the unit finishes so we don't check an incomplete log + if subprocess.call(['systemctl', '-q', 'is-active', self.unit]) == 0: + continue + try: with open(self.output_file, 'r', encoding='utf-8') as log: output = log.read() |