The check is done through ``` if [[ $(go list -f '{{ join .Deps " "}}') == *" testing "* ]]; then error.. fi ``` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
9 lines
257 B
Bash
Executable file
9 lines
257 B
Bash
Executable file
#!/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
|