Whamcloud - gitweb
LU-7086 tests: resolve /sbin symlink in test-framework.sh 06/16606/3
authorEmoly Liu <emoly.liu@intel.com>
Wed, 23 Sep 2015 09:02:46 +0000 (17:02 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 28 Oct 2015 13:51:33 +0000 (13:51 +0000)
commit8f9ab85d3c79f06c9db6b7b44368857a4714d455
treeb1f6a3de6da9b4a5ece0b59eba77b0fe6d9b8960
parent140b897187cdbbdbc593b85dbb8a3322a9c28c9c
LU-7086 tests: resolve /sbin symlink in test-framework.sh

In rhel7 and other new distros, /sbin is linked to /usr/sbin, so
the mount check in load_modules_local() is not matched anymore.
To avoid multiple bind mounts, this patch checks /sbin symlink
before using it directly.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I287ccd81ae4187a381a7f94dee30338d20dd6155
Reviewed-on: http://review.whamcloud.com/16606
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh