* In the NixOS tests, send syslog messages to the serial port (so that

they appear in the build log of the test).

svn path=/nixos/trunk/; revision=20490
This commit is contained in:
Eelco Dolstra 2010-03-09 13:31:20 +00:00
parent cfcb5a1544
commit 43d6b17d87
2 changed files with 16 additions and 1 deletions

View File

@ -19,6 +19,8 @@ let
*.crit /var/log/warn
*.*;mail.none;local1.none -/var/log/messages
${config.services.syslogd.extraConfig}
'';
in
@ -37,6 +39,14 @@ in
messages.
'';
};
extraConfig = mkOption {
default = "";
example = "news.* -/var/log/news";
description = ''
Additional text appended to <filename>syslog.conf</filename>.
'';
};
};

View File

@ -74,7 +74,12 @@ in
# `xwininfo' is used by the test driver to query open windows.
environment.systemPackages = [ pkgs.xorg.xwininfo ];
# Send all of /var/log/messages to the serial port (except for
# kernel messages through klogd, which already appear on the
# serial port).
services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
};
}