From 220acb78a5e3ad506357a5c738108c439209ba6e Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Mon, 8 Jan 2024 13:48:40 +0000 Subject: [PATCH] runner: Misc pylint fixups Signed-off-by: Andrew Cooper --- xtf-runner | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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, -- 2.39.5