[LTP] [PATCH] Renamed test function paramter and function name under cn_pec.sh, cgroup_fj_stress.sh and memcg_failcnt.sh

Mahesh Kumar G maheshkumar657g@gmail.com
Fri Apr 28 17:31:02 CEST 2023


Signed-off-by: Mahesh Kumar G <mahesh.kumar.g@ibm.com>
---
 testcases/kernel/connectors/pec/cn_pec.sh                     | 4 ++--
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh    | 4 ++--
 .../kernel/controllers/memcg/functional/memcg_failcnt.sh      | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/testcases/kernel/connectors/pec/cn_pec.sh b/testcases/kernel/connectors/pec/cn_pec.sh
index 082e30102..dce7f210b 100755
--- a/testcases/kernel/connectors/pec/cn_pec.sh
+++ b/testcases/kernel/connectors/pec/cn_pec.sh
@@ -11,7 +11,7 @@
 
 TST_OPTS="n:"
 TST_SETUP=setup
-TST_TESTFUNC=test
+TST_TESTFUNC=do_test
 TST_PARSE_ARGS=parse_args
 TST_USAGE=usage
 TST_NEEDS_ROOT=1
@@ -66,7 +66,7 @@ setup()
 	tst_res TINFO "Test process events connector"
 }
 
-test()
+do_test()
 {
 	local event=$2
 	local gen_pid list_pid gen_rc lis_rc
diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh
index d80b83bbd..72d3c53f4 100755
--- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh
+++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_stress.sh
@@ -7,7 +7,7 @@
 
 TCID="cgroup_fj_stress"
 TST_CNT=1
-TST_TESTFUNC=test
+TST_TESTFUNC=do_test
 TST_SETUP=setup
 TST_CLEANUP=cleanup
 TST_POS_ARGS=4
@@ -126,7 +126,7 @@ cleanup()
     common_cleanup
 }
 
-test()
+do_test()
 {
     tst_res TINFO "Creating subgroups ..."
 
diff --git a/testcases/kernel/controllers/memcg/functional/memcg_failcnt.sh b/testcases/kernel/controllers/memcg/functional/memcg_failcnt.sh
index 1be98a056..3a02d16c2 100755
--- a/testcases/kernel/controllers/memcg/functional/memcg_failcnt.sh
+++ b/testcases/kernel/controllers/memcg/functional/memcg_failcnt.sh
@@ -8,11 +8,11 @@
 # Restructure for LTP: Shi Weihua <shiwh@cn.fujitsu.com>
 # Added memcg enable/disable functionality: Rishikesh K Rajak <risrajak@linux.vnet.ibm.com>
 
-MEMCG_TESTFUNC=test
+MEMCG_TESTFUNC=do_test
 MEMCG_SHMMAX=1
 TST_TEST_DATA="--mmap-anon --mmap-file --shm"
 
-test()
+do_test()
 {
 	ROD echo $MEMORY_LIMIT \> memory.limit_in_bytes
 
-- 
2.37.1 (Apple Git-137.1)



More information about the ltp mailing list