aboutsummaryrefslogtreecommitdiffstats
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:40 +0100
commit45c334b3cfdfc9584b80cbc3ede1a60f61ecc8bb (patch)
tree1662472bf62b238426bbf639d5a398fa6860055e
parentc4fc226c2e3856b942bb4f57ead21a64c3dc8c0d (diff)
downloadopenembedded-core-contrib-45c334b3cfdfc9584b80cbc3ede1a60f61ecc8bb.tar.gz
openembedded-core-contrib-45c334b3cfdfc9584b80cbc3ede1a60f61ecc8bb.tar.bz2
openembedded-core-contrib-45c334b3cfdfc9584b80cbc3ede1a60f61ecc8bb.zip
scripts/oe-time-dd-test.sh: run "uptime" on each iteration
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() {
}
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