summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2021-07-20 15:09:06 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-22 09:33:44 +0100
commit80780d5f2759bbfa052d079291c74e74a9e1d296 (patch)
treeaf2b48f90099f046d63dd591d9e9e76e8d3452a6
parent1ad79313a5c3e6a453fbeb44caac5c5bbad46d3c (diff)
downloadpoky-80780d5f2759bbfa052d079291c74e74a9e1d296.tar.gz
scripts/oe-time-dd-test.sh: run "uptime" on each iteration
(From OE-Core rev: 45c334b3cfdfc9584b80cbc3ede1a60f61ecc8bb) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-time-dd-test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
index df36c0b297..386de83dce 100755
--- a/scripts/oe-time-dd-test.sh
+++ b/scripts/oe-time-dd-test.sh
@@ -25,7 +25,6 @@ usage() {
25} 25}
26 26
27run_cmds() { 27run_cmds() {
28 uptime
29 echo "start: top output" 28 echo "start: top output"
30 top -c -b -n1 -w 512 29 top -c -b -n1 -w 512
31 echo "end: top output" 30 echo "end: top output"
@@ -85,6 +84,7 @@ done
85 84
86 85
87if [ "$LOG_ONLY" = "true" ] ; then 86if [ "$LOG_ONLY" = "true" ] ; then
87 uptime
88 run_cmds 88 run_cmds
89 exit 89 exit
90fi 90fi
@@ -94,6 +94,7 @@ if [ -z ${TIMEOUT+x} ] || [ -z ${COUNT+x} ] ; then
94 exit 1 94 exit 1
95fi 95fi
96 96
97uptime
97echo "Timeout used: ${TIMEOUT}" 98echo "Timeout used: ${TIMEOUT}"
98timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync 99timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync
99if [ $? -ne 0 ]; then 100if [ $? -ne 0 ]; then