Skip to content

Commit 7c3a5c8

Browse files
committed
Check test error
1 parent ef2d97f commit 7c3a5c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

analysis/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function exp {
22
echo "$(dirname $1)/expected/$(basename $1).txt"
33
}
44

5-
for file in tests/src/*.res*; do
5+
for file in tests/src/*.(res,resi); do
66
./rescript-editor-analysis.exe test $file &> $(exp $file)
77
done
88

@@ -15,5 +15,6 @@ if [[ $diff = "" ]]; then
1515
printf "${successGreen}✅ No unstaged tests difference.${reset}\n"
1616
else
1717
printf "${warningYellow}⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff}\n${reset}"
18+
git diff tests/src/expected
1819
exit 1
1920
fi

0 commit comments

Comments
 (0)