Whamcloud - gitweb
LU-9966 test: add a skip test to test_411 74/28974/5
authorBob Glossman <bob.glossman@intel.com>
Sun, 10 Sep 2017 15:15:32 +0000 (08:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 18 Sep 2017 05:25:22 +0000 (05:25 +0000)
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 <bob.glossman@intel.com>
Reviewed-on: https://review.whamcloud.com/28974
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/sanity.sh

index 12efe14..e9ed875 100755 (executable)
@@ -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"