diff --git a/.presubmit/import-testing b/.presubmit/import-testing new file mode 100755 index 000000000..42d00bcfc --- /dev/null +++ b/.presubmit/import-testing @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "** presubmit/$(basename $0)" + +# Check to make sure "testing" is not imported +if [[ $(go list -f '{{ join .Deps " "}}') == *" testing "* ]]; then + echo "** presubmit/$(basename $0): please remove any 'import \"testing\"'" + exit 1 +fi