diff options
| author | Sakib Sajal <sakib.sajal@windriver.com> | 2021-07-20 15:09:06 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-22 09:33:44 +0100 |
| commit | 80780d5f2759bbfa052d079291c74e74a9e1d296 (patch) | |
| tree | af2b48f90099f046d63dd591d9e9e76e8d3452a6 /scripts | |
| parent | 1ad79313a5c3e6a453fbeb44caac5c5bbad46d3c (diff) | |
| download | poky-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>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/oe-time-dd-test.sh | 3 |
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 | ||
| 27 | run_cmds() { | 27 | run_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 | ||
| 87 | if [ "$LOG_ONLY" = "true" ] ; then | 86 | if [ "$LOG_ONLY" = "true" ] ; then |
| 87 | uptime | ||
| 88 | run_cmds | 88 | run_cmds |
| 89 | exit | 89 | exit |
| 90 | fi | 90 | fi |
| @@ -94,6 +94,7 @@ if [ -z ${TIMEOUT+x} ] || [ -z ${COUNT+x} ] ; then | |||
| 94 | exit 1 | 94 | exit 1 |
| 95 | fi | 95 | fi |
| 96 | 96 | ||
| 97 | uptime | ||
| 97 | echo "Timeout used: ${TIMEOUT}" | 98 | echo "Timeout used: ${TIMEOUT}" |
| 98 | timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync | 99 | timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync |
| 99 | if [ $? -ne 0 ]; then | 100 | if [ $? -ne 0 ]; then |
