From f63b79b055bebe9bd87b80f890f6dcc73de650d5 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 8f98226f50e4d8a37b39a4fb5a2a5986b4269080) Signed-off-by: Domen Kožar --- 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 12cb4594b166..b21df456639b 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