From a0d0af0f734aa1edd9336089c5da1b813e0ab125 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 3 Apr 2017 08:57:42 -0700 Subject: Make renice.test work without awk. Also try to only kill processes we created. --- tests/renice.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/renice.test b/tests/renice.test index e350c272..4f17d01d 100755 --- a/tests/renice.test +++ b/tests/renice.test @@ -11,7 +11,7 @@ fun_nice_val() { for each_proc in $@ do - echo `awk '{ print $18 }' /proc/${each_proc}/stat` + echo `cut -d' ' -f18 /proc/${each_proc}/stat` done } @@ -107,4 +107,4 @@ do done # Boundary test End -killall yes >/dev/null 2>&1 +kill -9 $proc1 $proc2 $proc3 $proc4 $proc5 -- cgit v1.2.3