Files
odo/scripts/check-fit.sh
Parthvi Vala 6fb5cc86b6 Add more checks to check-fit.sh (#6001)
Signed-off-by: Parthvi Vala <pvala@redhat.com>
2022-08-03 12:58:21 +00:00

16 lines
275 B
Bash
Executable File

#!/bin/bash
set -e
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