tests/virtualbox: Allow to call it with debug attr.

Instead of manually setting debug to true or false, this should make it
possible to now run the test like this:

nix-build nixos/tests/virtualbox.nix --arg debug true

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-09-17 10:54:51 +02:00
parent b0336c9854
commit 8f98226f50
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,6 +1,6 @@
import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let { debug ? false, ... } @ args:
debug = false; import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let
testVMConfig = vmName: attrs: { config, pkgs, ... }: { testVMConfig = vmName: attrs: { config, pkgs, ... }: {
boot.kernelParams = let boot.kernelParams = let
@ -416,4 +416,4 @@ in {
destroyVM_test2; destroyVM_test2;
}; };
''; '';
}) }) args