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>
(cherry picked from commit 8f98226f50)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
aszlig 2015-09-17 10:54:51 +02:00 committed by Domen Kožar
parent 32a9989234
commit f63b79b055

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, ... }: {
boot.kernelParams = let
@ -416,4 +416,4 @@ in {
destroyVM_test2;
};
'';
})
}) args