summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-09-07 16:25:28 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-09-07 16:32:12 +0200
commit75efdc65022f71b9a61f9347d353022d46055f4d (patch)
tree4c514a8492d7be7fe516e340d05ddf0f498255d4
parent5041cae5b767573faf286abfe6b1c76db2873626 (diff)
downloadnixlib-75efdc65022f71b9a61f9347d353022d46055f4d.tar
nixlib-75efdc65022f71b9a61f9347d353022d46055f4d.tar.gz
nixlib-75efdc65022f71b9a61f9347d353022d46055f4d.tar.bz2
nixlib-75efdc65022f71b9a61f9347d353022d46055f4d.tar.lz
nixlib-75efdc65022f71b9a61f9347d353022d46055f4d.tar.xz
nixlib-75efdc65022f71b9a61f9347d353022d46055f4d.tar.zst
nixlib-75efdc65022f71b9a61f9347d353022d46055f4d.zip
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>
-rw-r--r--nixos/tests/blivet.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/blivet.nix b/nixos/tests/blivet.nix
index 33a79e65efe1..a7b836ce99a6 100644
--- a/nixos/tests/blivet.nix
+++ b/nixos/tests/blivet.nix
@@ -69,6 +69,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.pythonPackages; rec {
     sed -i \
       -e '1i import tempfile' \
       -e 's|_STORE_FILE_PATH = .*|_STORE_FILE_PATH = tempfile.gettempdir()|' \
+      -e 's|DEFAULT_STORE_SIZE = .*|DEFAULT_STORE_SIZE = 409600|' \
       tests/loopbackedtestcase.py
 
     PYTHONPATH=".:$(< "${pkgs.stdenv.mkDerivation {