[Patchew-devel] [PATCH 08/11] testing: remove the untest command

Paolo Bonzini posted 11 patches 5 years, 12 months ago
[Patchew-devel] [PATCH 08/11] testing: remove the untest command
Posted by Paolo Bonzini 5 years, 12 months ago
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 mods/testing.py | 10 ----------
 patchew-cli     | 10 ----------
 2 files changed, 20 deletions(-)

diff --git a/mods/testing.py b/mods/testing.py
index 90bb2be..1b914ce 100644
--- a/mods/testing.py
+++ b/mods/testing.py
@@ -571,13 +571,3 @@ class TestingCapabilitiesView(APILoginRequiredView):
             raise Http404("Project '%s' not found" % project)
         probes = _instance.get_capability_probes(po)
         return probes
-
-class UntestView(APILoginRequiredView):
-    name = "untest"
-    allowed_groups = ["testers"]
-
-    def handle(self, request, terms):
-        se = SearchEngine()
-        q = se.search_series(user=request.user, *terms)
-        for s in q:
-            _instance.clear_and_start_testing(s)
diff --git a/patchew-cli b/patchew-cli
index bfff69c..9ea7834 100755
--- a/patchew-cli
+++ b/patchew-cli
@@ -378,16 +378,6 @@ class SearchCommand(SubCommand):
                     print(x[a])
         return 0
 
-class UntestCommand(SubCommand):
-    name = "untest"
-
-    def arguments(self, parser):
-        parser.add_argument("term", nargs="*", type=str)
-
-    def do(self, args, argv):
-        self.api_do("untest", terms=args.term)
-        return 0
-
 class TesterCommand(SubCommand):
     name = "tester"
     want_argv = True
-- 
2.21.0


_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel