infra/go: delete presubmits
These presubmits are still in py2 and are showing up on migration
dashboards. Given that this repo isn't in use anymore, let's just
delete them.
BUG=chromium:1401395
TEST=none
Change-Id: I6fbe71872089485de2094be69aa32323876f720b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/go/+/4114760
Auto-Submit: Jack Neus <jackneus@google.com>
Commit-Queue: George Engelbrecht <engeg@google.com>
Tested-by: Jack Neus <jackneus@google.com>
Commit-Queue: Jack Neus <jackneus@google.com>
Reviewed-by: George Engelbrecht <engeg@google.com>
Reviewed-by: Chris Gerber <gerb@google.com>
diff --git a/PRESUBMIT.cfg b/PRESUBMIT.cfg
deleted file mode 100644
index bd666e2..0000000
--- a/PRESUBMIT.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-[Hook Scripts]
-run_tests = ./run_tests.sh
\ No newline at end of file
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
deleted file mode 100755
index 00f8fc5..0000000
--- a/PRESUBMIT.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 2019 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-def CheckGolangRunTests(input_api, output_api):
- try:
- test_output = input_api.subprocess.check_output(['./run_tests.sh'])
- except Exception as error:
- return [
- output_api.PresubmitError(
- 'run_tests.sh failed.\noutput:%s\n' % error.output)
- ]
- return []
-
-
-def CommonChecks(input_api, output_api):
- results = []
-
- # ./run_tests.sh
- results.extend(CheckGolangRunTests(input_api, output_api))
-
- return results
-
-
-#TODO verbose flag
-CheckChangeOnUpload = CommonChecks
-CheckChangeOnCommit = CommonChecks