Whamcloud - gitweb
LU-10211 tests: conf_sanity test 102 don't call lustre_rmmod 01/30001/2
authorOleg Drokin <oleg.drokin@intel.com>
Wed, 8 Nov 2017 05:29:15 +0000 (00:29 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Jan 2018 02:49:09 +0000 (02:49 +0000)
When testing from build tree lustre/scripts is not in the
PATH, so need to call $LUSTRE_RMMOD that knows the actual
path to that script.

Change-Id: I7e8fa2b4ac8c2d03d1a9a6865c50dbae6c139a30
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/30001
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
lustre/tests/conf-sanity.sh

index 20ef29a..57e6ed2 100644 (file)
@@ -7291,7 +7291,7 @@ test_102() {
        fi
 
        # unload all and only load libcfs to allow fail_loc setting
        fi
 
        # unload all and only load libcfs to allow fail_loc setting
-       do_facet mds1 lustre_rmmod || error "unable to unload modules"
+       do_facet mds1 $LUSTRE_RMMOD || error "unable to unload modules"
        do_facet mds1 modprobe libcfs || error "libcfs not loaded"
        do_facet mds1 lsmod \| grep libcfs || error "libcfs not loaded"
 
        do_facet mds1 modprobe libcfs || error "libcfs not loaded"
        do_facet mds1 lsmod \| grep libcfs || error "libcfs not loaded"