]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: Avoiding a fixed 10sec sleep in test_mon_cephdf_commands()
authorErwan Velu <erwan@redhat.com>
Wed, 23 Mar 2016 10:13:48 +0000 (11:13 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 5 Apr 2016 07:36:25 +0000 (09:36 +0200)
commitc5fa83f58658c2efe2b97478e0da502efdf6c8c7
treecaecc999bc8b0bd4487fbc5d614cf1b95b1fe1c1
parent62bdde2cd2acbfaf0a74d382f9a44258053b47d3
tests: Avoiding a fixed 10sec sleep in test_mon_cephdf_commands()

The current code was waiting 10s to expect the file being put.
If the file was put in a shorter time than 10s, the test just waits for
nothing reducing the execution speed of that test.

This patch simply check if the file is actually available every second
during 10sec to exit prematurely.

This patch saves exactly 10 sec on a local system, surely a little bit
less on an infra but still saves time.
Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/workunits/cephtool/test.sh