mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
nixos/tests/virtualbox: Disable debug logging.
Especially if the user isn't in the vboxusers group anymore, this gets VERY noisy, because the VBoxSVC process emits warnings for every single USB device noting that it's only possible to access it when the user is in the vboxusers group. So, we now have a debug attribute, where we can enable it when necessary. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
ef691d5c30
commit
d45649b415
@ -1,5 +1,7 @@
|
||||
import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let
|
||||
|
||||
debug = false;
|
||||
|
||||
testVMConfig = vmName: attrs: { config, pkgs, ... }: {
|
||||
boot.kernelParams = let
|
||||
miniInit = ''
|
||||
@ -64,7 +66,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let
|
||||
rotated = map (i: "${logfile}.${toString i}") (range 1 9);
|
||||
all = concatMapStringsSep " " (f: "\"${f}\"") ([logfile] ++ rotated);
|
||||
logcmd = "tail -F ${all} 2> /dev/null | logger -t \"${tag}\"";
|
||||
in "$machine->execute(ru '${logcmd} & disown');";
|
||||
in optionalString debug "$machine->execute(ru '${logcmd} & disown');";
|
||||
|
||||
testVM = vmName: vmScript: let
|
||||
cfg = (import ../lib/eval-config.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user