about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-12-18 13:43:18 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-12-18 14:06:13 +0100
commitd45649b415be05ff7abd250ff5148c792660df60 (patch)
tree96f80b281ba19fdfd5c2111712d0b70b9e441f8b /nixos
parentef691d5c304187bb99526c2e3478540e5d355f66 (diff)
downloadnixlib-d45649b415be05ff7abd250ff5148c792660df60.tar
nixlib-d45649b415be05ff7abd250ff5148c792660df60.tar.gz
nixlib-d45649b415be05ff7abd250ff5148c792660df60.tar.bz2
nixlib-d45649b415be05ff7abd250ff5148c792660df60.tar.lz
nixlib-d45649b415be05ff7abd250ff5148c792660df60.tar.xz
nixlib-d45649b415be05ff7abd250ff5148c792660df60.tar.zst
nixlib-d45649b415be05ff7abd250ff5148c792660df60.zip
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>
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/virtualbox.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix
index 71e627134da2..b2b1ec877798 100644
--- a/nixos/tests/virtualbox.nix
+++ b/nixos/tests/virtualbox.nix
@@ -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 {