From 8f98226f50e4d8a37b39a4fb5a2a5986b4269080 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 17 Sep 2015 10:54:51 +0200 Subject: [PATCH] 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 --- nixos/tests/virtualbox.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 12cb4594b16..b21df456639 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -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