Remove lowercase matching from linux.ip.Addr test

This commit is contained in:
Gustavo Moreira
2024-02-02 21:03:03 +11:00
parent 8b6bd0f74e
commit 5219e8aaae
+2 -3
View File
@@ -329,14 +329,13 @@ def test_linux_tty_check(image, volatility, python):
def test_linux_ip_addr(image, volatility, python):
rc, out, err = runvol_plugin("linux.ip.Addr", image, volatility, python)
out = out.lower()
assert re.search(
rb"2\s+eth0\s+00:0c:29:8f:ed:ca\s+false\s+192.168.201.161\s+24\s+global\s+up",
rb"2\s+eth0\s+00:0c:29:8f:ed:ca\s+False\s+192.168.201.161\s+24\s+global\s+UP",
out,
)
assert re.search(
rb"2\s+eth0\s+00:0c:29:8f:ed:ca\s+false\s+fe80::20c:29ff:fe8f:edca\s+64\s+link\s+up",
rb"2\s+eth0\s+00:0c:29:8f:ed:ca\s+False\s+fe80::20c:29ff:fe8f:edca\s+64\s+link\s+UP",
out,
)
assert out.count(b"\n") >= 8