Browse Source

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>
Sakib Sajal 3 years ago
parent
commit
80780d5f27
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/oe-time-dd-test.sh

+ 2 - 1
scripts/oe-time-dd-test.sh

@@ -25,7 +25,6 @@ usage() {
 }
 
 run_cmds() {
-    uptime
     echo "start: top output"
 	top -c -b -n1 -w 512
 	echo "end: top output"
@@ -85,6 +84,7 @@ done
 
 
 if [ "$LOG_ONLY" = "true" ] ; then
+    uptime
     run_cmds
     exit
 fi
@@ -94,6 +94,7 @@ if [ -z ${TIMEOUT+x} ] || [ -z ${COUNT+x} ] ; then
     exit 1
 fi
 
+uptime
 echo "Timeout used: ${TIMEOUT}"
 timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync
 if [ $? -ne 0 ]; then