File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,22 @@ echo "done---------"
12
12
# node ./checkErrors.js
13
13
14
14
for file in tests/src/* .{res,resi}; do
15
- ./rescript-editor-analysis.exe test $file & > $( exp $file )
15
+ # ./rescript-editor-analysis.exe test $file &> $(exp $file)
16
+ cat $( exp $file ) & > $( exp $file )
16
17
# CI
17
18
# if [ "$RUNNER_OS" == "Windows" ]; then
18
19
# dos2unix $(exp $file)
19
20
# fi
20
21
done
21
22
23
+ echo " cat -A test.sh last"
24
+ cat -A tests/src/expected/Auto.res.txt
25
+ echo " done cat last---------"
26
+ echo " git diff test.sh last"
27
+ git diff tests/src/expected/Auto.res.txt
28
+ echo " done git last---------"
29
+
30
+
22
31
warningYellow=' \033[0;33m'
23
32
successGreen=' \033[0;32m'
24
33
reset=' \033[0m'
30
39
printf " ${warningYellow} ⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff} \n${reset} "
31
40
# node ./checkErrors.js
32
41
33
- echo " cat -A test.sh last"
34
- cat -A tests/src/expected/Auto.res.txt
35
- echo " done cat last---------"
36
- echo " git diff test.sh last"
37
- git diff tests/src/expected/Auto.res.txt
38
- echo " done git last---------"
39
-
40
42
git --no-pager diff --word-diff-regex=. tests/src/expected/Auto.res.txt
41
43
exit 1
42
44
fi
You can’t perform that action at this time.
0 commit comments