Previous patches added a single 'run' command parametrized with GitLab job specs via '--job' that cover all of these original actions, adding some more in the process. Drop the original actions as we don't need them anymore. Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx> Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> Erik Skultety <eskultet@xxxxxxxxxx>: --- ci/helper | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/ci/helper b/ci/helper index bc5de008b2..b90dc56ede 100755 --- a/ci/helper +++ b/ci/helper @@ -112,33 +112,6 @@ class Parser: ) subparsers.required = True - # build action - buildparser = subparsers.add_parser( - "build", - help="run a build in a container", - parents=[containerparser, mesonparser], - formatter_class=argparse.ArgumentDefaultsHelpFormatter, - ) - buildparser.set_defaults(func=Application._action_build) - - # test action - testparser = subparsers.add_parser( - "test", - help="run a build in a container (including tests)", - parents=[containerparser, mesonparser], - formatter_class=argparse.ArgumentDefaultsHelpFormatter, - ) - testparser.set_defaults(func=Application._action_test) - - # shell action - shellparser = subparsers.add_parser( - "shell", - help="start a shell in a container", - parents=[containerparser], - formatter_class=argparse.ArgumentDefaultsHelpFormatter, - ) - shellparser.set_defaults(func=Application._action_shell) - jobparser = subparsers.add_parser( "run", help="Run a GitLab CI job or 'shell' in a local environment", @@ -301,15 +274,6 @@ class Application: """) print(msg.replace("STALE_DETAILS", stale_details)) - def _action_build(self): - self._make_run(f"ci-build@{self._args.target}") - - def _action_test(self): - self._make_run(f"ci-test@{self._args.target}") - - def _action_shell(self): - self._make_run(f"ci-shell@{self._args.target}") - @required_deps("git") def _action_run(self): return self._lcitool_run(self._args.job) -- 2.41.0