Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/test/osd/safe-to-destroy.sh: Add parallelism
This patch is about adding some parallelism into this test. Every "action" to test is spawn in a subshell with a custom testing env: - a separate directory - a different cluster id - a different port This way it is possible spawning several tests in parallel. The pids are stored in bash arrays and the exit status are double-checked after the run. Regarding the exit code, the pass is reported as passed or failed. This patch is saving 55 seconds. Before: 1/1 Test ceph#135: safe-to-destroy.sh ............... Passed 126.26 sec After : 1/1 Test ceph#135: safe-to-destroy.sh ............... Passed 71.47 sec Signed-off-by: Erwan Velu <erwan@redhat.com>
- Loading branch information