git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/blivet: Fix btrfs-related tests

The loopback-based tests use a storage size of 102400 blocks (one block is 1024 bytes), which doesn't seem to fit for btrfs volumes in recent btrfs versions. I'm setting this to 409600 (400 MB) now so that it should be enough for later versions in case they need even more space for subvolumes. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit75efdc65022f71b9a61f9347d353022d46055f4d authoraszlig <aszlig@redmoonstudios.org> dateWed 7 Sep 2016, 16:25 (10 years ago) parent5041cae
1 file changed+1
nixos/tests/blivet.nix+1
nixos/tests/blivet.nix+1
@@ -69,6 +69,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.pythonPackages; rec {
6969 sed -i \
7070 -e '1i import tempfile' \
7171 -e 's|_STORE_FILE_PATH = .*|_STORE_FILE_PATH = tempfile.gettempdir()|' \
72+ -e 's|DEFAULT_STORE_SIZE = .*|DEFAULT_STORE_SIZE = 409600|' \
7273 tests/loopbackedtestcase.py
7374
7475 PYTHONPATH=".:$(< "${pkgs.stdenv.mkDerivation {