aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.presubmit/import-testing9
1 files changed, 9 insertions, 0 deletions
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