summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-11-06 10:31:26 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-11-06 10:31:26 +0800
commit828ae3efd896793087d12fc307764efb90a6a58a (patch)
tree7ee90ac5faba61f136ef7b4059ffcf7d1c7b98b7
parentff4e308dccc0df5297cf1866396eb365903e5df2 (diff)
boot sync to make sure all files written to disk
Change-Id: Icc183b88a96cbfa68e91e8e8eb1c4564d47cad8e Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xautomated/android/boottime/device-script.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/automated/android/boottime/device-script.sh b/automated/android/boottime/device-script.sh
index 0e33d5a..ce78a35 100755
--- a/automated/android/boottime/device-script.sh
+++ b/automated/android/boottime/device-script.sh
@@ -407,6 +407,9 @@ if [ "X${OPERATION}" = "XCOLLECT" ]; then
dmesg > "${dir_boottime_data}/dmesg_${COLLECT_NO}.log"
output_test_result "BOOTTIME_DMESG_COLLECT" "pass"
+ # make sure to write all files to disk
+ sync
+
echo "==============list of files under ${dir_boottime_data}/ starts from here:"
ls -l ${dir_boottime_data}/*
echo "==============list of files under ${dir_boottime_data}/ ends from here:"