Skip to content

Commit

Permalink
block/035: Report IOPS
Browse files Browse the repository at this point in the history
Make it easier to retrieve the IOPS results by reporting these on stdout.

Suggested-by: Shin'ichiro Kawasaki <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
  • Loading branch information
bvanassche committed Apr 9, 2024
1 parent b97cfd8 commit 96512af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/block/035
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ test() {
local iops1 iops2 rest
read -r iops1 iops2 rest \
<<<"$(sed -n 's/.*IOPS=\([0-9]*\).*/\1/p' <"${fio_output}" | xargs)"
TEST_RUN["IOPS for 1 ms completion time"]=$iops1
TEST_RUN["IOPS for 100 ms completion time"]=$iops2
if [ -z "$iops1" ] || [ -z "$iops2" ] ||
[ "$iops1" -lt "$iops2" ]; then
echo "Error: IOPS too low ($iops1; $iops2)"
Expand Down

0 comments on commit 96512af

Please sign in to comment.