From: Andrew Cooper Date: Mon, 8 Jan 2024 13:48:40 +0000 (+0000) Subject: runner: Misc pylint fixups X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=220acb78a5e3ad506357a5c738108c439209ba6e;p=xtf.git runner: Misc pylint fixups Signed-off-by: Andrew Cooper --- diff --git a/xtf-runner b/xtf-runner index aa4fda3..772e688 100755 --- a/xtf-runner +++ b/xtf-runner @@ -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,