ktest: Sync before reboot
[profile/ivi/kernel-adaptation-intel-automotive.git] / tools / testing / ktest / ktest.pl
index 63245a5..f4b8f96 100755 (executable)
@@ -1147,6 +1147,9 @@ sub wait_for_monitor;
 sub reboot {
     my ($time) = @_;
 
+    # Make sure everything has been written to disk
+    run_ssh("sync");
+
     if (defined($time)) {
        start_monitor;
        # flush out current monitor