misc: Run pre-commit run --all-files
This ensures `isort` is applied to all files in the repo. Change-Id: Ib7ced1c924ef1639542bf0d1a01c5737f6ba43e9
This commit is contained in:
@@ -27,18 +27,18 @@
|
||||
# Authors: Sean Wilson
|
||||
|
||||
|
||||
from .state import *
|
||||
from .runner import *
|
||||
from .test_util import *
|
||||
from .suite import *
|
||||
from .loader import *
|
||||
from .fixture import *
|
||||
from .configuration import *
|
||||
from .main import main
|
||||
# TODO Remove this as an export, users should getcwd from os
|
||||
from os import getcwd
|
||||
|
||||
# TODO Remove this awkward bootstrap
|
||||
# FIXME
|
||||
from gem5 import *
|
||||
|
||||
# TODO Remove this as an export, users should getcwd from os
|
||||
from os import getcwd
|
||||
from .configuration import *
|
||||
from .fixture import *
|
||||
from .loader import *
|
||||
from .main import main
|
||||
from .runner import *
|
||||
from .state import *
|
||||
from .suite import *
|
||||
from .test_util import *
|
||||
|
||||
@@ -82,10 +82,13 @@ import argparse
|
||||
import copy
|
||||
import os
|
||||
import re
|
||||
|
||||
from pickle import HIGHEST_PROTOCOL as highest_pickle_protocol
|
||||
|
||||
from testlib.helper import absdirpath, AttrDict, FrozenAttrDict
|
||||
from testlib.helper import (
|
||||
AttrDict,
|
||||
FrozenAttrDict,
|
||||
absdirpath,
|
||||
)
|
||||
|
||||
|
||||
class UninitialzedAttributeException(Exception):
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
#
|
||||
# Authors: Sean Wilson
|
||||
|
||||
from typing import Optional
|
||||
|
||||
import testlib.helper as helper
|
||||
from testlib.configuration import constants
|
||||
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class SkipException(Exception):
|
||||
def __init__(self, fixture, testitem):
|
||||
|
||||
@@ -37,14 +37,16 @@ import sys
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
from queue import (
|
||||
Empty,
|
||||
Queue,
|
||||
)
|
||||
|
||||
import testlib.helper as helper
|
||||
import testlib.log as log
|
||||
import testlib.result as result
|
||||
import testlib.state as state
|
||||
import testlib.terminal as terminal
|
||||
|
||||
from queue import Queue, Empty
|
||||
from testlib.configuration import constants
|
||||
|
||||
|
||||
|
||||
@@ -41,9 +41,6 @@
|
||||
"""
|
||||
Helper classes for writing tests with this test library.
|
||||
"""
|
||||
from collections import namedtuple
|
||||
from collections.abc import MutableSet
|
||||
|
||||
import difflib
|
||||
import errno
|
||||
import os
|
||||
@@ -54,6 +51,8 @@ import subprocess
|
||||
import tempfile
|
||||
import threading
|
||||
import time
|
||||
from collections import namedtuple
|
||||
from collections.abc import MutableSet
|
||||
|
||||
|
||||
class TimedWaitPID:
|
||||
|
||||
@@ -70,12 +70,12 @@ import re
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import testlib.fixture as fixture_mod
|
||||
import testlib.log as log
|
||||
import testlib.suite as suite_mod
|
||||
import testlib.test_util as test_mod
|
||||
import testlib.fixture as fixture_mod
|
||||
import testlib.wrappers as wrappers
|
||||
import testlib.uid as uid
|
||||
import testlib.wrappers as wrappers
|
||||
|
||||
|
||||
class DuplicateTestItemException(Exception):
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#
|
||||
# Authors: Sean Wilson
|
||||
|
||||
import os
|
||||
import itertools
|
||||
import os
|
||||
|
||||
import testlib.configuration as configuration
|
||||
import testlib.handlers as handlers
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#
|
||||
# Authors: Sean Wilson
|
||||
|
||||
import testlib.terminal as terminal
|
||||
import testlib.log as log
|
||||
import testlib.terminal as terminal
|
||||
|
||||
|
||||
# TODO Refactor print logic out of this so the objects
|
||||
|
||||
@@ -42,9 +42,9 @@ import os
|
||||
import pickle
|
||||
import xml.sax.saxutils
|
||||
|
||||
from testlib.configuration import config
|
||||
import testlib.helper as helper
|
||||
import testlib.state as state
|
||||
from testlib.configuration import config
|
||||
|
||||
|
||||
def _create_uid_index(iterable):
|
||||
|
||||
@@ -43,9 +43,11 @@ import traceback
|
||||
|
||||
import testlib.helper as helper
|
||||
import testlib.log as log
|
||||
|
||||
from testlib.state import Status, Result
|
||||
from testlib.fixture import SkipException
|
||||
from testlib.state import (
|
||||
Result,
|
||||
Status,
|
||||
)
|
||||
|
||||
|
||||
def compute_aggregate_result(iterable):
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
#
|
||||
# Author: Steve Reinhardt
|
||||
|
||||
import sys
|
||||
import fcntl
|
||||
import termios
|
||||
import struct
|
||||
import sys
|
||||
import termios
|
||||
|
||||
# Intended usage example:
|
||||
#
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#
|
||||
# Authors: Sean Wilson
|
||||
|
||||
import os
|
||||
import itertools
|
||||
import os
|
||||
|
||||
import testlib.configuration as configuration
|
||||
|
||||
|
||||
@@ -45,7 +45,10 @@ loaded by the testlib :class:`testlib.loader.Loader`.
|
||||
import itertools
|
||||
|
||||
import testlib.uid as uid
|
||||
from testlib.state import Status, Result
|
||||
from testlib.state import (
|
||||
Result,
|
||||
Status,
|
||||
)
|
||||
|
||||
|
||||
class TestCaseMetadata:
|
||||
|
||||
Reference in New Issue
Block a user