mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
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:
parent
b0336c9854
commit
8f98226f50
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user