summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-09-11 14:38:53 +0300
committerPetri Latvala <petri.latvala@intel.com>2018-09-12 10:08:36 +0300
commit9a8da36e708f9ed15b20689dfe305e41f9a19008 (patch)
treee7725395d75fc33b1d2f92598c7b1c72c29c783b /runner
parentd07fb7a19b8b78a2c8d75e0f99939bd477219213 (diff)
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 <petri.latvala@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'runner')
-rw-r--r--runner/executor.c1
1 files changed, 1 insertions, 0 deletions
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;