From b5ff8388b2694c036a3c2bbc6487b9b30533e2ec Mon Sep 17 00:00:00 2001 From: Alexey Rogachevskiy Date: Sat, 12 Oct 2019 04:09:32 +0300 Subject: [PATCH] selfcheck: Update systemd-analyze regex --- clever/src/selfcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/src/selfcheck.py b/clever/src/selfcheck.py index 5b9c58fa..db979e0f 100755 --- a/clever/src/selfcheck.py +++ b/clever/src/selfcheck.py @@ -597,7 +597,7 @@ def check_rangefinder(): @check('Boot duration') def check_boot_duration(): output = subprocess.check_output('systemd-analyze') - r = re.compile(r'([\d\.]+)s$') + r = re.compile(r'([\d\.]+)s\s*$', flags=re.MULTILINE) duration = float(r.search(output).groups()[0]) if duration > 15: failure('long Raspbian boot duration: %ss (systemd-analyze for analyzing)', duration)