ceph/qa
Erwan Velu db31cc6cbc tests: Adding parallelism helpers in ceph-helpers.sh
This commit introduce two new functions in ceph-helpers.sh to ease
parallelism in tests.

It's based on two functions : run_in_background() & wait_background()

The first one allow you to spawn processes or functions in background and saves
the associated pid in a variable passed as first argument.

The second one waits for thoses pids to complete and report their exit status.
If one or more failed then wait_background() reports a failure.

A typical usage looks like :

 pids1=""
 run_in_background pids1 bash -c 'sleep 5; exit 0'
 run_in_background pids1 bash -c 'sleep 1; exit 1'
 run_in_background pids1 my_bash_function
 wait_background pids1

The variable that contains pids is local making possible to do nested calls of
thoses two new functions.

Signed-off-by: Erwan Velu <erwan@redhat.com>
2016-04-05 09:36:25 +02:00
..
btrfs
client
fs
libceph
mds
mon/bootstrap
qa_scripts remove rest-bench 2015-07-30 13:21:36 -04:00
rbd
workunits tests: Adding parallelism helpers in ceph-helpers.sh 2016-04-05 09:36:25 +02:00
loopall.sh
Makefile
run_xfstests_krbd.sh qa/krbd: Expunge generic/247 2015-12-07 09:24:33 -08:00
run_xfstests_qemu.sh qa: https://ceph.com/git -> https://git.ceph.com 2015-09-24 18:36:57 -04:00
run_xfstests-obsolete.sh
run_xfstests.sh qa: https://ceph.com/git -> https://git.ceph.com 2015-09-24 18:36:57 -04:00
runallonce.sh
runoncfuse.sh
runonkclient.sh
setup-chroot.sh