Skip to content

Commit

Permalink
autotest-client-tests: Optimize imports
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
  • Loading branch information
lmr committed Feb 27, 2015
1 parent 31d5337 commit 09fdf30
Show file tree
Hide file tree
Showing 96 changed files with 117 additions and 48 deletions.
2 changes: 2 additions & 0 deletions aio_dio_bugs/aio_dio_bugs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os

from autotest.client import test, utils



# tests is a simple array of "cmd" "arguments"
tests = [["aio-dio-invalidate-failure", "poo"],
["aio-dio-subblock-eof-read", "eoftest"],
Expand Down
1 change: 1 addition & 0 deletions aiostress/aiostress.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This requires aio headers to build.
# Should work automagically out of deps now.
import os

from autotest.client import test, utils


Expand Down
2 changes: 0 additions & 2 deletions asynctest/asynctest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os
import re
import time

from autotest.client import utils, test
Expand Down
1 change: 1 addition & 0 deletions autotest_regression/autotest_regression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os

from autotest.client import test, utils
from autotest.client.shared import git, error

Expand Down
1 change: 1 addition & 0 deletions barriertest/barriertest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
import time

from autotest.client import test
from autotest.client.shared import barrier, error

Expand Down
1 change: 1 addition & 0 deletions bash_shared_mapping/bash_shared_mapping.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import signal
import os

from autotest.client import utils, test
from autotest.client.shared import utils_memory

Expand Down
1 change: 1 addition & 0 deletions bonnie/bonnie.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import re

from autotest.client import test, os_dep, utils


Expand Down
3 changes: 2 additions & 1 deletion btreplay/btreplay.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import time
import os
from autotest.client import test, os_dep, utils

from autotest.client import test, utils
from autotest.client.shared import error


Expand Down
1 change: 1 addition & 0 deletions cgroup/cgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from autotest.client import test, utils
from autotest.client.shared import error

try:
from autotest.client.shared.utils_cgroup import Cgroup, CgroupModules
from autotest.client.shared.utils_cgroup import get_load_per_cpu
Expand Down
1 change: 0 additions & 1 deletion cgroup/cgroup_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import time
import math
import os
from tempfile import mktemp


def test_smoke(args):
Expand Down
1 change: 1 addition & 0 deletions cgroup_tests/cgroup_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging

from autotest.client import test
from autotest.client.shared import error, utils

Expand Down
1 change: 1 addition & 0 deletions cgroup_tests/cpu_high_load_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import threading
import stat
import logging

from autotest.client.shared import error, utils_cgroup, utils, pexpect


Expand Down
1 change: 1 addition & 0 deletions cgroup_tests/device_access_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import tempfile

from autotest.client.shared import error, utils_cgroup


Expand Down
1 change: 1 addition & 0 deletions cgroup_tests/device_rate_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import itertools
import tempfile

from autotest.client.shared import error, utils_cgroup


Expand Down
3 changes: 2 additions & 1 deletion cgroup_tests/freezer_process_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import subprocess
import signal
import stat
from autotest.client.shared import error, utils_cgroup, utils

from autotest.client.shared import error, utils_cgroup


def stress_process(shell_file):
Expand Down
1 change: 1 addition & 0 deletions cgroup_tests/memory_limit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess
import time
import logging

from autotest.client import utils
from autotest.client.shared import error, utils_cgroup

Expand Down
1 change: 1 addition & 0 deletions cgroup_tests/memory_migrate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess
import signal
import time

from autotest.client.shared import error, utils_cgroup


Expand Down
2 changes: 2 additions & 0 deletions compilebench/compilebench.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os
import re

from autotest.client import test, utils


test_name = 'compilebench'


Expand Down
3 changes: 1 addition & 2 deletions connectathon/connectathon.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import shutil
import glob
import logging

from autotest.client import test, utils
from autotest.client.shared import error

Expand Down
3 changes: 2 additions & 1 deletion cpu_hotplug/cpu_hotplug.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import logging
import re
import sys
from autotest.client import test, utils, os_dep

from autotest.client import test, utils
from autotest.client.shared import error


Expand Down
1 change: 1 addition & 0 deletions ctcs/ctcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil
import glob
import logging

from autotest.client import test, utils
from autotest.client.shared import error

Expand Down
1 change: 1 addition & 0 deletions cyclictest/cyclictest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test
from autotest.client.shared import utils

Expand Down
1 change: 1 addition & 0 deletions dacapo/dacapo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
import logging
import shutil

from autotest.client import utils, test
from autotest.client.test_config import config_loader
from autotest.client.shared import error, software_manager
Expand Down
2 changes: 2 additions & 0 deletions dbt2/dbt2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import os
import shutil

from autotest.client import test, utils



# Dbt-2 is a fair-use implementation of the TPC-C benchmark. The test is
# currently hardcoded to use PostgreSQL but the kit also supports MySQL.

Expand Down
1 change: 1 addition & 0 deletions disktest/disktest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import subprocess
import logging

from autotest.client import test, utils
from autotest.client.shared import error, utils_memory

Expand Down
2 changes: 1 addition & 1 deletion dma_memtest/dma_memtest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import time
import re
import subprocess
import shutil
import logging

from autotest.client import utils, test
from autotest.client.shared import error

Expand Down
2 changes: 1 addition & 1 deletion ebizzy/ebizzy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from autotest.client import utils, test
from autotest.client.shared import error


class ebizzy(test.test):
Expand Down
1 change: 0 additions & 1 deletion error_test_bug/error_test_bug.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from autotest.client.shared import error
from autotest.client import test


Expand Down
1 change: 1 addition & 0 deletions ffsb/ffsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
import random
import shutil

from autotest.client import test, os_dep, utils
from autotest.client.shared import error

Expand Down
1 change: 1 addition & 0 deletions fio/fio.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions flail/flail.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions fs_mark/fs_mark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions fsfuzzer/fsfuzzer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions fsstress/fsstress.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions fsx/fsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# NOTE - this should also have the ability to mount a filesystem,
# run the tests, unmount it, then fsck the filesystem
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions hackbench/hackbench.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
6 changes: 3 additions & 3 deletions hwclock/hwclock.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from autotest.client import test, utils
from autotest.client.shared import error
import re
import os
import logging

from autotest.client import test, utils
from autotest.client.shared import error


class hwclock(test.test):
version = 1
Expand Down
1 change: 1 addition & 0 deletions interbench/interbench.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
1 change: 1 addition & 0 deletions iosched_bugs/iosched_bugs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import time
import subprocess

from autotest.client import test
from autotest.client.shared import utils, error

Expand Down
1 change: 1 addition & 0 deletions iozone/iozone.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import re

from autotest.client import test, utils
import postprocessing

Expand Down
2 changes: 2 additions & 0 deletions iperf/iperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import socket
import time
import logging

from autotest.client import test, utils
from autotest.client.net import net_utils
from autotest.client.shared import error


MPSTAT_IX = 0
IPERF_IX = 1

Expand Down
1 change: 1 addition & 0 deletions isic/isic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from autotest.client import test, utils


Expand Down
3 changes: 1 addition & 2 deletions kernbench/kernbench.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import re
import pickle
import os
import logging

from autotest.client import utils, test


Expand Down
2 changes: 1 addition & 1 deletion kernelbuild/kernelbuild.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from autotest.client import test, kernel
from autotest.client import test


class kernelbuild(test.test):
Expand Down
1 change: 1 addition & 0 deletions kernelinstall/kernelinstall.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import logging

from autotest.client import test
from autotest.client import utils
from autotest.client.shared import git, utils_koji, error, software_manager
Expand Down
3 changes: 2 additions & 1 deletion libhugetlbfs/libhugetlbfs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re
import os

from autotest.client import utils, test, os_dep

from autotest.client.shared import error


Expand Down
1 change: 0 additions & 1 deletion libvirt_test_api/libvirt_test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import re
import shutil
import glob
import logging
Expand Down
1 change: 1 addition & 0 deletions linus_stress/linus_stress.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import shutil

from autotest.client import test, utils
from autotest.client.shared import utils_memory

Expand Down
5 changes: 3 additions & 2 deletions linux-tools/crontab/crontab.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/python
import os
import shutil
import glob
import logging
from time import sleep

from autotest.client import test, utils

from autotest.client.shared import error
from time import sleep


class crontab(test.test):
Expand Down
Loading

0 comments on commit 09fdf30

Please sign in to comment.