From: Mr NeilBrown Date: Mon, 10 Aug 2020 22:52:51 +0000 (+1000) Subject: LU-13903 tests: skip test_410 if modules weren't built X-Git-Tag: 2.13.56~67 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=bfb5fe8b18423f6058b5940dccd5132929e3b25d LU-13903 tests: skip test_410 if modules weren't built test_410 requires a special module, which is only built if all modules are being built. So if only the user-space code was built, this test will fail. So make the test contitional on the module existing. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: I235894c72b51f627c01ee08e850a59933b49e033 Reviewed-on: https://review.whamcloud.com/39652 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Shaun Tancheff Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index d168bd3..dba98f2 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -22356,6 +22356,8 @@ test_410() { [[ $CLIENT_VERSION -lt $(version_code 2.9.59) ]] && skip "Need client version at least 2.9.59" + [ -f $LUSTRE/tests/kernel/kinode.ko ] || + skip "Need MODULES build" # Create a file, and stat it from the kernel local testfile=$DIR/$tfile