Allow dumping full systemd journal in log-dump.sh.

The feature is gated behind a newly introduced 'dump-systemd-journal' flag.
We want to dump the full systemd journal in our scalability performance tests.
This commit is contained in:
Matt Matejczyk
2019-01-24 15:19:21 +01:00
parent 6fb69d3967
commit 35543f8989
3 changed files with 11 additions and 1 deletions

View File

@@ -4599,6 +4599,8 @@ func CoreDump(dir string) {
cmd = exec.Command(path.Join(TestContext.RepoRoot, "cluster", "log-dump", "log-dump.sh"), dir)
}
cmd.Env = append(os.Environ(), fmt.Sprintf("LOG_DUMP_SYSTEMD_SERVICES=%s", parseSystemdServices(TestContext.SystemdServices)))
cmd.Env = append(os.Environ(), fmt.Sprintf("LOG_DUMP_SYSTEMD_JOURNAL=%v", TestContext.DumpSystemdJournal))
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {