From 9a8da36e708f9ed15b20689dfe305e41f9a19008 Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Tue, 11 Sep 2018 14:38:53 +0300 Subject: runner: Seek to the end to get to the end of kmsg When draining the rest of kmsg records, read the compare record from the end of kmsg or you get incomplete dmesg fields in the results. Signed-off-by: Petri Latvala Cc: Arkadiusz Hiler Cc: Martin Peres Reviewed-by: Arkadiusz Hiler --- runner/executor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'runner') diff --git a/runner/executor.c b/runner/executor.c index 60cf4da5..36117af6 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -247,6 +247,7 @@ static void dump_dmesg(int kmsgfd, int outfd) if (comparefd < 0) return; + lseek(comparefd, 0, SEEK_END); if (fcntl(kmsgfd, F_SETFL, O_NONBLOCK)) return; -- cgit v1.2.3