From f6b0e358f304b006dd24524503bb16d649c5499d Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Sun, 10 Sep 2017 08:15:32 -0700 Subject: [PATCH] LU-9966 test: add a skip test to test_411 Since recently added test_411 needs a /sys nntry that doesn't exist in sles12 extend the existing skip logic to skip the test in the case of the entry being missing. Test-Parameters: trivial clientdistro=sles12sp2 \ testgroup=review-ldiskfs Change-Id: I1f1bf05affdc1cec9957624506dac65e59f5b4ad Signed-off-by: Bob Glossman Reviewed-on: https://review.whamcloud.com/28974 Reviewed-by: Yang Sheng Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo --- lustre/tests/sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 12efe14..e9ed875 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -16396,7 +16396,9 @@ cleanup_test411_cgroup() { test_411() { local cg_basedir=/sys/fs/cgroup/memory - test -d "$cg_basedir" || { skip "no setup for cgroup"; return; } + # LU-9966 + test -f "$cg_basedir/memory.kmem.limit_in_bytes" || + { skip "no setup for cgroup"; return; } dd if=/dev/zero of=$DIR/$tfile bs=1M count=100 conv=fsync || error "test file creation failed" -- 1.8.3.1