]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
runner: Misc pylint fixups
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jan 2024 13:48:40 +0000 (13:48 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jan 2024 14:40:12 +0000 (14:40 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner

index aa4fda399096ca0c670c76247a218e2fa0392fbd..772e6880fc866f6a7a4cb35aab76b734c6dc2477 100755 (executable)
@@ -10,11 +10,12 @@ Currently assumes the presence and availability of the `xl` toolstack.
 from __future__ import print_function, unicode_literals
 
 import json
-import sys, os, os.path as path
+import sys, os
 import subprocess
 
 from functools import partial
 from optparse import OptionParser
+from os import path
 from subprocess import PIPE
 
 
@@ -95,12 +96,6 @@ class TestInstance(object):
     def __eq__(self, other):
         return repr(self) == repr(other)
 
-    def __ne__(self, other):
-        return repr(self) != repr(other)
-
-    def __cmp__(self, other):
-        return cmp(repr(self), repr(other))
-
 
 class TestInfo(object):
     """ Object representing a tests info.json, in a more convenient form. """
@@ -544,7 +539,7 @@ def run_tests(opts):
     """ Run tests """
 
     tests = opts.selection
-    if not len(tests):
+    if not tests:
         raise RunnerError("No tests to run")
 
     run_test = { "console": run_test_console,