[LTP] [PATCH] cgroup_fj/cgroup_fj_function2.sh: fix subsystem of ns

Xiao Yang yangx.jy@cn.fujitsu.com
Tue Dec 15 04:16:57 CET 2015


Pid could not be echoed from subgroup if subsystem is (or include) ns

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh
index 5b8f7d8..d7be53d 100755
--- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh
+++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_function2.sh
@@ -163,7 +163,11 @@ case7()
 
 	sleep 1
 
-	do_echo 1 1 $pid $mount_point/tasks
+	if [ $subsystem == "ns" ]; then
+		echo "\"pid could not be echoed from subgroup if subsystem is (or include) ns\""
+	else
+		do_echo 1 1 $pid $mount_point/tasks
+	fi
 }
 
 case8()
-- 
1.8.3.1





More information about the Ltp mailing list