2018-05-07 22:47:25 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
echo "** presubmit/$(basename $0)"
|
|
|
|
|
|
|
|
|
|
# Get the tests that call t.* without capitalizing the first char - seems we standardized on that.
|
2018-06-02 19:48:39 +01:00
|
|
|
if egrep -r '\bt\.Fatal.?\("[a-z]' "$@"; then
|
2018-05-07 22:47:25 +01:00
|
|
|
echo "** presubmit/$(basename $0): please start with an upper case letter when using t.Fatal*()"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2018-06-02 19:48:39 +01:00
|
|
|
if egrep -r '\bt\.Error.?\("[a-z]' "$@"; then
|
|
|
|
|
echo "** presubmit/$(basename $0): please start with an upper case letter when using t.Error*()"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if egrep -r '\bt\.Log.?\("[a-z]' "$@"; then
|
2018-05-07 22:47:25 +01:00
|
|
|
echo "** presubmit/$(basename $0): please start with an upper case letter when using t.Log*()"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|