Skip to content

Commit

Permalink
Add more checks to check-fit.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Parthvi Vala <pvala@redhat.com>
  • Loading branch information
valaparthvi committed Aug 3, 2022
1 parent 0a89798 commit 02a37bd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions scripts/check-fit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

set -e

if grep -nr "FIt(" tests/; then
echo "Not OK. FIt exists somewhere in the testing code. Please remove it."
exit 1
else
echo "OK"
fi
for i in FIt FDescribe FContext FWhen FEntry FDescribeTable
do
if grep -nr "$i(" tests/; then
echo -e "$i: Not OK. $i exists somewhere in the testing code. Please remove it.\n"
exitCode=1
else
echo -e "$i: OK\n"
fi
done

exit $exitCode

0 comments on commit 02a37bd

Please sign in to comment.