mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
nixosTests.zram-generator: fix test
This commit is contained in:
parent
8b3baa1402
commit
a40156de6b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue