Skip to content

Commit

Permalink
iotop: Increase dd count to avoid occasional fails
Browse files Browse the repository at this point in the history
On s390x there is no reccord of dd, I guess because it's done before it can
be recorded by iotop

-print log when test failed
  • Loading branch information
dzedro committed Oct 11, 2023
1 parent d6f16fb commit 0cf223f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/console/iotop.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ sub run {

# Test under load
assert_script_run('(iotop -baoqn 10 > iotop.log &)');
assert_script_run("time dd if=/dev/zero of=./file.img bs=1k count=500000 status=none");
assert_script_run("time dd if=/dev/zero of=./file.img bs=1k count=2000000 status=none");
assert_script_run("wait");
assert_script_run("grep 'dd if=/dev/zero of=./file.img' iotop.log");

# Cleanup
assert_script_run("rm file.img iotop.log");
}

sub post_fail_hook {
assert_script_run("cat iotop.log");
}

1;

0 comments on commit 0cf223f

Please sign in to comment.