summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-28 20:25:44 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-28 22:15:47 +0200
commita924120340bdb9b6a02b4381ef0a7bc979db6cf9 (patch)
tree0bc59223006ae6f09b16993d51f841262092b874 /nixos
parentf125d194e8603b12a108d302ac663bea9f54df76 (diff)
downloadnixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.tar
nixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.tar.gz
nixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.tar.bz2
nixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.tar.lz
nixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.tar.xz
nixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.tar.zst
nixlib-a924120340bdb9b6a02b4381ef0a7bc979db6cf9.zip
Remove superfluous root resizing test
This is done in the EC2 test now.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/resize-root.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/nixos/tests/resize-root.nix b/nixos/tests/resize-root.nix
deleted file mode 100644
index c8ccab38ab6f..000000000000
--- a/nixos/tests/resize-root.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-import ./make-test.nix ({ pkgs, lib, ...} : {
-
-  meta.maintainers = [ lib.maintainers.eelco ];
-
-  machine = { config, pkgs, ... }: {
-    virtualisation.diskSize = 512;
-    fileSystems = lib.mkVMOverride {
-      "/".autoResize = true;
-    };
-  };
-
-  testScript =
-    ''
-      # Create a VM with a 512 MiB disk.
-      $machine->start;
-      $machine->waitForUnit("multi-user.target");
-      my $blocks = $machine->succeed("stat -c %b -f /");
-      my $bsize = $machine->succeed("stat -c %S -f /");
-      my $size = $blocks * $bsize;
-      die "wrong free space $size" if $size < 480 * 1024 * 1024 || $size > 512 * 1024 * 1024;
-      $machine->succeed("touch /marker");
-      $machine->shutdown;
-
-      # Grow the disk to 1024 MiB.
-      system("qemu-img resize vm-state-machine/machine.qcow2 1024M") == 0 or die;
-
-      # Start the VM again and check whether the initrd has correctly
-      # grown the root filesystem.
-      $machine->start;
-      $machine->waitForUnit("multi-user.target");
-      $machine->succeed("[ -e /marker ]");
-      my $blocks = $machine->succeed("stat -c %b -f /");
-      my $size = $blocks * $bsize;
-      die "wrong free space $size" if $size < 980 * 1024 * 1024 || $size > 1024 * 1024 * 1024;
-    '';
-})