commit | a0d0af0f734aa1edd9336089c5da1b813e0ab125 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Apr 03 08:57:42 2017 -0700 |
committer | Rob Landley <rob@landley.net> | Fri Apr 07 11:53:18 2017 -0500 |
tree | 0129955543c84a47417f2c51e2eba37548042a24 | |
parent | 2f6c9e87b1c4cdba68ff2de6159ddfd4d05f1d8d [diff] |
Make renice.test work without awk. Also try to only kill processes we created.
diff --git a/tests/renice.test b/tests/renice.test index e350c27..4f17d01 100755 --- a/tests/renice.test +++ b/tests/renice.test
@@ -11,7 +11,7 @@ { 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 @@ done # Boundary test End -killall yes >/dev/null 2>&1 +kill -9 $proc1 $proc2 $proc3 $proc4 $proc5