nixosTests.zram-generator: fix test
This commit is contained in:
parent
8b3baa1402
commit
a40156de6b
@ -38,9 +38,9 @@
|
|||||||
machine.wait_for_unit("systemd-zram-setup@zram0.service")
|
machine.wait_for_unit("systemd-zram-setup@zram0.service")
|
||||||
machine.wait_for_unit("systemd-zram-setup@zram1.service")
|
machine.wait_for_unit("systemd-zram-setup@zram1.service")
|
||||||
zram = machine.succeed("zramctl --noheadings --raw")
|
zram = machine.succeed("zramctl --noheadings --raw")
|
||||||
swap = machine.succeed("swapon --show --noheadings")
|
swap = machine.succeed("swapon --show --noheadings --raw")
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
assert f"/dev/zram{i} lz4 10M" in zram
|
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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user