aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Rostedt2012-12-11 13:59:05 -0600
committerSteven Rostedt2012-12-11 13:59:05 -0600
commita496872212e50a7e543a027faf35b0909459ec9e (patch)
tree70141d18c30e540e930e5a2707b58cf11013606b /tools
parenta15ba91361d46b4cc71d76d5712fb6420b517d8a (diff)
downloadkernel-omap-a496872212e50a7e543a027faf35b0909459ec9e.tar.gz
kernel-omap-a496872212e50a7e543a027faf35b0909459ec9e.tar.xz
kernel-omap-a496872212e50a7e543a027faf35b0909459ec9e.zip
ktest: Sync before reboot
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/ktest/ktest.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 63245a56aca3..f4b8f96a9430 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1147,6 +1147,9 @@ sub wait_for_monitor;
1147sub reboot { 1147sub reboot {
1148 my ($time) = @_; 1148 my ($time) = @_;
1149 1149
1150 # Make sure everything has been written to disk
1151 run_ssh("sync");
1152
1150 if (defined($time)) { 1153 if (defined($time)) {
1151 start_monitor; 1154 start_monitor;
1152 # flush out current monitor 1155 # flush out current monitor