Skip to content

Commit 27232bf

Browse files
committed
e2e: replace awk with tr+tail in test_secure_boot_enabled (awk not in base image)
1 parent 2297156 commit 27232bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_secure_boot_enabled(child):
109109
child,
110110
"od -An -t u1 "
111111
"/sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c "
112-
"2>/dev/null | awk '{print $NF}'"
112+
"2>/dev/null | tr -s ' ' '\\n' | tail -1"
113113
)
114114
assert rc == 0, "SecureBoot EFI variable not readable"
115115
assert out.strip() == "1", f"Secure Boot not active (last byte = {out.strip()!r})"

0 commit comments

Comments
 (0)