diff options
-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 |