]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-time-dd-test.sh: run "uptime" on each iteration
authorSakib Sajal <sakib.sajal@windriver.com>
Tue, 20 Jul 2021 19:09:06 +0000 (15:09 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Jul 2021 08:33:40 +0000 (09:33 +0100)
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>
scripts/oe-time-dd-test.sh

index df36c0b297e728dae3d692e59992bc392079a0fb..386de83dcefa817028e90b48cfffcd76770fa1c4 100755 (executable)
@@ -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