Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hammer: tools/rados: add bench smoke tests #7903

Merged
2 commits merged into from Mar 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/common/obj_bencher.cc
Expand Up @@ -672,7 +672,7 @@ int ObjBencher::seq_read_bench(int seconds_to_run, int num_objects, int concurre

completions_done();

return 0;
return (errors > 0 ? -EIO : 0);

ERR:
lock.Lock();
Expand Down Expand Up @@ -864,7 +864,7 @@ int ObjBencher::rand_read_bench(int seconds_to_run, int num_objects, int concurr

completions_done();

return 0;
return (errors > 0 ? -EIO : 0);

ERR:
lock.Lock();
Expand Down
2 changes: 2 additions & 0 deletions src/test/test_rados_tool.sh
Expand Up @@ -261,6 +261,8 @@ run_expect_fail "$RADOS_TOOL" mkpool delete_me_mkpool_test3 0 0k

run_expect_succ "$RADOS_TOOL" --pool "$POOL" bench 1 write
run_expect_fail "$RADOS_TOOL" --pool "$POOL" bench 1k write
run_expect_succ "$RADOS_TOOL" --pool "$POOL" bench 1 rand
run_expect_succ "$RADOS_TOOL" --pool "$POOL" bench 1 seq


echo "SUCCESS!"
Expand Down