Whamcloud - gitweb
LU-4613 tests: purge older request result in test_12o 35/9235/2
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 12 Feb 2014 09:52:07 +0000 (10:52 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 20 Feb 2014 15:14:58 +0000 (15:14 +0000)
sanity-hsm/test_12o sub-test, which has been introduced as part
of LU-3834, submits 2 RESTORE requests for the same FID and thus
needs to purge 1st result from log before to check 2nd.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ia2a0ead487b29a68c8a920bae2aa1d654eac4051
Reviewed-on: http://review.whamcloud.com/9235
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh

index f535b7e..01dbc9b 100755 (executable)
@@ -1208,6 +1208,10 @@ test_12o() {
        # retry w/o failure injection
        do_facet $SINGLEMDS lctl set_param fail_loc=0
 
+       # to be sure previous RESTORE result is gone
+       cdt_purge
+       wait_for_grace_delay
+
        diff -q /etc/hosts $f
        st=$?