[3/4] memcg_lib.sh: Check for killall

Message ID 20180711122925.24278-4-punit.agrawal@arm.com
State Accepted
Delegated to: Petr Vorel
Headers show
Series
  • Add dependency checking
Related show

Commit Message

Punit Agrawal July 11, 2018, 12:29 p.m.
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
 testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
index 7892f78c3..838706e1a 100755
--- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
+++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
@@ -34,6 +34,9 @@  if [ $? -ne 0 ]; then
 	tst_brkm TBROK "getconf PAGESIZE failed"
 fi
 
+# Check for dependencies
+tst_check_cmds killall
+
 # Post 4.16 kernel updates stat in batch (> 32 pages) every time
 PAGESIZES=$(( $PAGESIZE * 33 ))