diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2020-07-21 17:17:10 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2020-07-21 17:17:10 +0100 |
commit | 3755415d1281a4aa7d6c23ff52d32522ce3ea918 (patch) | |
tree | 3540ce63ac0620b758505eeb161ea1b6340131e0 /bin | |
parent | 8697c050b1199557e6e1277104dacc0fb81a57dd (diff) |
fde_tests: fix bad search with line end
Fix use of '$' to match end of line in multiline string
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fde_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fde_tests.py b/bin/fde_tests.py index 0e658d4..276f283 100755 --- a/bin/fde_tests.py +++ b/bin/fde_tests.py @@ -93,11 +93,11 @@ def main(): print(cryptinfo, '\n') # use the type as the final arbiter of success - regexp = re.compile(r'type:\ *LUKS\d$') + regexp = re.compile(r'type:\ *LUKS\d$', re.MULTILINE) if regexp.search(cryptinfo): print('Full Disk Encryption is operational on this device') else: - raise SystemExit('ERROR: cryptsetup did not report LUKS1 in use') + raise SystemExit('ERROR: cryptsetup did not report LUKS in use') if __name__ == "__main__": |