]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ktest: Sync before reboot
authorSteven Rostedt <srostedt@redhat.com>
Tue, 11 Dec 2012 19:59:05 +0000 (14:59 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 11 Dec 2012 19:59:05 +0000 (14:59 -0500)
Before rebooting the target, run the sync command, as it seems that
either Grub2 or systemd gets screwed up if you update to reboot a kernel
once and do a reboot without doing a sync.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl

index 63245a56aca37a2e7b74358cae1fe5f6b838c4f7..f4b8f96a9430dd0824f8a245291f117e8e7bffc7 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