diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-06 13:54:17 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-06 14:15:18 +0200 |
commit | eab25b104ad12b75a8b9a41ce3ac8b3b931144ef (patch) | |
tree | eb8d7d3c1b89a360fa74941984c4a34df460c219 /nixos/modules/testing/test-instrumentation.nix | |
parent | 0d3b3bd01bb4dc89fef477920afaf3c8e56dfde6 (diff) | |
download | nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.tar nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.tar.gz nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.tar.bz2 nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.tar.lz nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.tar.xz nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.tar.zst nixpkgs-eab25b104ad12b75a8b9a41ce3ac8b3b931144ef.zip |
test-instrumentation.nix: Improve logging
In particular, don't clobber the serial console with duplicate output from systemd and the journal, and increase the log level.
Diffstat (limited to 'nixos/modules/testing/test-instrumentation.nix')
-rw-r--r-- | nixos/modules/testing/test-instrumentation.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix index 9100a433cd6..9e3bc780f5b 100644 --- a/nixos/modules/testing/test-instrumentation.nix +++ b/nixos/modules/testing/test-instrumentation.nix @@ -66,13 +66,22 @@ let kernel = config.boot.kernelPackages.kernel; in # Panic if an error occurs in stage 1 (rather than waiting for # user intervention). boot.kernelParams = - [ "console=tty1" "console=ttyS0" "panic=1" "boot.panic_on_fail" ]; + [ "console=ttyS0" "panic=1" "boot.panic_on_fail" ]; # `xwininfo' is used by the test driver to query open windows. environment.systemPackages = [ pkgs.xorg.xwininfo ]; # Log everything to the serial console. - services.journald.console = "/dev/console"; + services.journald.extraConfig = + '' + ForwardToConsole=yes + MaxLevelConsole=debug + ''; + + # Don't clobber the console with duplicate systemd messages. + systemd.extraConfig = "ShowStatus=no"; + + boot.consoleLogLevel = 7; # Prevent tests from accessing the Internet. networking.defaultGateway = mkOverride 150 ""; |