Commit 76a47998 authored by Rashad Kanavath's avatar Rashad Kanavath

TEST: fix grep in cmake files

parent 2740e82f
......@@ -204,16 +204,6 @@ else
echo "Check 3/4 : PASS"
fi
GREP=$(which grep)
RES=$($GREP -Rs "/usr/" > /dev/null)
# clean any background process
ps_children $$ >tmp.log
for pid in $(cut -d ' ' -f 1 < tmp.log); do
kill -9 "$pid"
done
rm -f tmp.log
grep_cmd=$(which grep)
grep_out=$($grep_cmd -Rs "/usr/" "$CUR_DIR/lib/cmake/")
grep_ret=$?
......@@ -224,3 +214,10 @@ if [ $grep_ret -ne 1 ]; then
else
echo "Check 4/4 : PASS"
fi
# clean any background process
ps_children $$ >tmp.log
for pid in $(cut -d ' ' -f 1 < tmp.log); do
kill -9 "$pid"
done
rm -f tmp.log
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment