diff options
author | Elliott Hughes <enh@google.com> | 2017-04-03 08:57:42 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-04-07 11:53:18 -0500 |
commit | a0d0af0f734aa1edd9336089c5da1b813e0ab125 (patch) | |
tree | 0129955543c84a47417f2c51e2eba37548042a24 /tests/renice.test | |
parent | 2f6c9e87b1c4cdba68ff2de6159ddfd4d05f1d8d (diff) | |
download | toybox-a0d0af0f734aa1edd9336089c5da1b813e0ab125.tar.gz |
Make renice.test work without awk.
Also try to only kill processes we created.
Diffstat (limited to 'tests/renice.test')
-rwxr-xr-x | tests/renice.test | 4 |
1 files changed, 2 insertions, 2 deletions
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 |