From 336c44adca1768ada1e1e2f4d7dbbc33e994e582 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 2 Mar 2016 15:20:04 -0600 Subject: Factor out command name at the start of test name, have runtest.sh print it. --- tests/pgrep.test | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/pgrep.test') diff --git a/tests/pgrep.test b/tests/pgrep.test index 2af12204..753a55ab 100755 --- a/tests/pgrep.test +++ b/tests/pgrep.test @@ -20,14 +20,14 @@ proc_parent=`cat /proc/${proc}/stat | awk '{ print $4 }'` #echo "# Parent Process id of $proc is $proc_parent" # Testcases for pgrep command -testing "pgrep pattern" "pgrep yes" "$proc\n" "" "" -testing "pgrep wildCardPattern" "pgrep ^y.*s$" "$proc\n" "" "" -testing "pgrep -l pattern" "pgrep -l yes" "$proc yes\n" "" "" -testing "pgrep -f pattern" "pgrep -f yes" "$proc\n" "" "" -testing "pgrep -n pattern" "pgrep -n yes" "$proc\n" "" "" -testing "pgrep -o pattern" "pgrep -o yes" "$proc\n" "" "" -testing "pgrep -s" "pgrep -s $session_id yes" "$proc\n" "" "" -testing "pgrep -P" "pgrep -P $proc_parent yes" "$proc\n" "" "" +testing "pattern" "pgrep yes" "$proc\n" "" "" +testing "wildCardPattern" "pgrep ^y.*s$" "$proc\n" "" "" +testing "-l pattern" "pgrep -l yes" "$proc yes\n" "" "" +testing "-f pattern" "pgrep -f yes" "$proc\n" "" "" +testing "-n pattern" "pgrep -n yes" "$proc\n" "" "" +testing "-o pattern" "pgrep -o yes" "$proc\n" "" "" +testing "-s" "pgrep -s $session_id yes" "$proc\n" "" "" +testing "-P" "pgrep -P $proc_parent yes" "$proc\n" "" "" #Clean-up killall yes >/dev/null 2>&1 -- cgit v1.2.3