Commit ef8cb406 authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

Add presubmit to check if there are any files that have `import "testing"` (#2480)

The check is done through
```
if [[ $(go list -f '{{ join .Deps " "}}') == *" testing "* ]]; then
   error..
fi
```
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 725becd1
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment