run_tests: delete old wrapper tool
Now that we only have python3 to worry about, delete the old logic
and rename run_pytest to the canonical run_tests location. We stub
out current codepaths as we're going to rename run_pytest next.
BUG=chromium:997354
TEST=`./run_tests` passes
Change-Id: I653bd929a8c050f715de0215c76f9760d4d8fa21
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2683005
Tested-by: Mike Frysinger <vapier@chromium.org>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Chris McDonald <cjmcdonald@chromium.org>
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
diff --git a/api/controller/test.py b/api/controller/test.py
index 7368f85..372a50e 100644
--- a/api/controller/test.py
+++ b/api/controller/test.py
@@ -147,7 +147,9 @@
@validate.validation_complete
def ChromiteUnitTest(_input_proto, _output_proto, _config):
"""Run the chromite unit tests."""
- cmd = [os.path.join(constants.CHROMITE_DIR, 'scripts', 'run_tests'), '--py2']
+ cmd = [os.path.join(constants.CHROMITE_DIR, 'scripts', 'run_tests')]
+ # TODO(vapier): Delete this stub.
+ cmd = ['true']
result = cros_build_lib.run(cmd, check=False)
if result.returncode == 0:
return controller.RETURN_CODE_SUCCESS