nixosTests.zram-generator: fix test

This commit is contained in:
Léana 江 2025-05-09 12:45:57 +02:00
parent 8b3baa1402
commit a40156de6b
No known key found for this signature in database
GPG key ID: 4E887A4CA9714ADA

View file

@ -38,9 +38,9 @@
machine.wait_for_unit("systemd-zram-setup@zram0.service")
machine.wait_for_unit("systemd-zram-setup@zram1.service")
zram = machine.succeed("zramctl --noheadings --raw")
swap = machine.succeed("swapon --show --noheadings")
swap = machine.succeed("swapon --show --noheadings --raw")
for i in range(2):
assert f"/dev/zram{i} lz4 10M" in zram
assert f"/dev/zram{i} partition 10M" in swap
assert f"/dev/zram{i} partition 10M" in swap
'';
}