mirror of https://github.com/golang/go.git
gofmt: do not stop test.sh after 1 error
Fix bug377.go to be gofmt-compliant. R=gri, r, r CC=golang-dev https://golang.org/cl/5400045
This commit is contained in:
parent
3276afd4d4
commit
4d27f64863
|
|
@ -14,6 +14,7 @@ TMP1=test_tmp1.go
|
||||||
TMP2=test_tmp2.go
|
TMP2=test_tmp2.go
|
||||||
TMP3=test_tmp3.go
|
TMP3=test_tmp3.go
|
||||||
COUNT=0
|
COUNT=0
|
||||||
|
rm -f _failed
|
||||||
|
|
||||||
count() {
|
count() {
|
||||||
#echo $1
|
#echo $1
|
||||||
|
|
@ -27,10 +28,9 @@ count() {
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
echo $1
|
echo $1
|
||||||
exit 1
|
touch _failed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# apply to one file
|
# apply to one file
|
||||||
apply1() {
|
apply1() {
|
||||||
# the following files are skipped because they are test cases
|
# the following files are skipped because they are test cases
|
||||||
|
|
@ -157,6 +157,11 @@ runtests() {
|
||||||
runtests "$@"
|
runtests "$@"
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
if [ -f _failed ]; then
|
||||||
|
rm _failed
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# done
|
# done
|
||||||
echo
|
echo
|
||||||
echo "PASSED ($COUNT tests)"
|
echo "PASSED ($COUNT tests)"
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@
|
||||||
|
|
||||||
// Issue 1802
|
// Issue 1802
|
||||||
|
|
||||||
ignored
|
package ignored
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue