@@ -22,7 +22,6 @@ from xml.dom import minidom
import oe.path
from oeqa.utils.commands import CommandError, runCmd, get_bb_vars
-from oeqa.utils.git import GitError, GitRepo
# Get logger for this module
log = logging.getLogger('build-perf')
@@ -4,7 +4,6 @@
# SPDX-License-Identifier: MIT
#
-import os
import re
import sys
import unittest
@@ -4,10 +4,6 @@
# SPDX-License-Identifier: MIT
#
-import os
-import sys
-import signal
-import time
import glob
import subprocess
from collections import defaultdict
@@ -9,7 +9,6 @@ import time
import select
import logging
import subprocess
-import codecs
from . import OETarget
@@ -18,7 +18,6 @@ import os
import sys
import traceback
import unittest
-import subprocess
import testtools
import threading
import time
@@ -5,7 +5,6 @@
#
import os
-import sys
def findFile(file_name, directory):
"""
@@ -4,7 +4,6 @@
# SPDX-License-Identifier: MIT
#
-import os
import inspect
import unittest
@@ -9,7 +9,6 @@ from oeqa.sdk.context import OESDKTestContext, OESDKTestContextExecutor
class TestSDKBase:
@staticmethod
def get_sdk_configuration(d, test_type):
- import platform
import oe.lsb
from oeqa.utils.metadata import get_layers
configuration = {'TEST_TYPE': test_type,
@@ -80,7 +79,6 @@ class TestSDK(TestSDKBase):
def run(self, d):
import os
- import subprocess
import json
import logging
@@ -14,7 +14,7 @@ class TestSDKExt(TestSDKBase):
import logging
from bb.utils import export_proxies
- from oeqa.utils import avoid_paths_in_environ, make_logger_bitbake_compatible, subprocesstweak
+ from oeqa.utils import make_logger_bitbake_compatible, subprocesstweak
from oeqa.sdkext.context import OESDKExtTestContext, OESDKExtTestContextExecutor
from oeqa.utils import get_json_result_dir
@@ -7,7 +7,6 @@
import os
import shutil
from oeqa.selftest.case import OESelftestTestCase
-from oeqa.utils.commands import bitbake
from oeqa.utils.commands import bitbake, get_bb_var, get_test_layer
class UserGroupTests(OESelftestTestCase):
@@ -6,12 +6,10 @@
import os
import time
-import glob
import sys
import importlib
import subprocess
import unittest
-from random import choice
import oeqa
import oe
@@ -373,7 +371,6 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
return json_result_dir
def get_configuration(self, args):
- import platform
from oeqa.utils.metadata import metadata_from_bb
metadata = metadata_from_bb()
oeselftest_metadata = get_oeselftest_metadata(args)
@@ -16,7 +16,6 @@ import time
import logging
from oeqa.utils import CommandError
from oeqa.utils import ftools
-import re
import contextlib
import errno
# Export test doesn't require bb
@@ -4,8 +4,6 @@
# SPDX-License-Identifier: MIT
#
-import os
-import re
import errno
def write_file(path, data):
@@ -72,7 +72,7 @@ class HTTPService:
self.logger.info("Stopped HTTPService on %s:%s" % (self.host, self.port))
if __name__ == "__main__":
- import sys, logging
+ import sys
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
@@ -4,10 +4,8 @@
# SPDX-License-Identifier: MIT
#
import os
-import sys
import tempfile
import contextlib
-import socket
from oeqa.utils.commands import bitbake, get_bb_var, Command
from oeqa.utils.network import get_free_port
@@ -8,10 +8,8 @@
# dictionary as well as test context to any action to run.
import datetime
-import io
import os
import stat
-import subprocess
import tempfile
from oeqa.utils import get_artefact_dir
@@ -18,7 +18,6 @@ import select
import errno
import string
import threading
-import codecs
import tempfile
from collections import defaultdict
from contextlib import contextmanager
Drop imports which nothing in the module uses. AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- meta/lib/oeqa/buildperf/base.py | 1 - meta/lib/oeqa/core/loader.py | 1 - meta/lib/oeqa/core/target/qemu.py | 4 ---- meta/lib/oeqa/core/target/ssh.py | 1 - meta/lib/oeqa/core/utils/concurrencytest.py | 1 - meta/lib/oeqa/core/utils/path.py | 1 - meta/lib/oeqa/core/utils/test.py | 1 - meta/lib/oeqa/sdk/testsdk.py | 2 -- meta/lib/oeqa/sdkext/testsdk.py | 2 +- meta/lib/oeqa/selftest/cases/usergrouptests.py | 1 - meta/lib/oeqa/selftest/context.py | 3 --- meta/lib/oeqa/utils/commands.py | 1 - meta/lib/oeqa/utils/ftools.py | 2 -- meta/lib/oeqa/utils/httpserver.py | 2 +- meta/lib/oeqa/utils/nfs.py | 2 -- meta/lib/oeqa/utils/postactions.py | 2 -- meta/lib/oeqa/utils/qemurunner.py | 1 - 17 files changed, 2 insertions(+), 26 deletions(-)