未验证 提交 4125028d 编写于 作者: L Lukáš Doktor

Merging pull request 1235

* https://github.com/avocado-framework/avocado:
  Plugin interfaces: proposal for a better module name and location
...@@ -15,10 +15,9 @@ ...@@ -15,10 +15,9 @@
import logging import logging
from avocado.core import data_dir from avocado.core import data_dir
from avocado.core.plugin_interfaces import CLICmd
from avocado.core.settings import settings from avocado.core.settings import settings
from .base import CLICmd
class Config(CLICmd): class Config(CLICmd):
......
...@@ -19,12 +19,11 @@ import os ...@@ -19,12 +19,11 @@ import os
import sys import sys
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.core.plugin_interfaces import CLICmd
from avocado.utils import distro as utils_distro from avocado.utils import distro as utils_distro
from avocado.utils import path as utils_path from avocado.utils import path as utils_path
from avocado.utils import process from avocado.utils import process
from .base import CLICmd
class SoftwarePackage(object): class SoftwarePackage(object):
......
...@@ -19,8 +19,7 @@ import os ...@@ -19,8 +19,7 @@ import os
import sys import sys
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.core.plugin_interfaces import CLICmd
from .base import CLICmd
class ExecPath(CLICmd): class ExecPath(CLICmd):
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
"""Run tests with GDB goodies enabled.""" """Run tests with GDB goodies enabled."""
from .base import CLI
from avocado.core import exceptions from avocado.core import exceptions
from avocado.core.plugin_interfaces import CLI
from avocado.core.settings import settings from avocado.core.settings import settings
from avocado.utils import gdb from avocado.utils import gdb
from avocado.utils import process from avocado.utils import process
......
...@@ -21,8 +21,7 @@ import sys ...@@ -21,8 +21,7 @@ import sys
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.core.html import HTMLTestResult from avocado.core.html import HTMLTestResult
from avocado.core.result import register_test_result_class from avocado.core.result import register_test_result_class
from avocado.core.plugin_interfaces import CLI
from .base import CLI
class HTML(CLI): class HTML(CLI):
......
import os import os
import logging import logging
from avocado.utils import process from avocado.core.plugin_interfaces import JobPre, JobPost
from avocado.core.settings import settings from avocado.core.settings import settings
from avocado.plugins.base import JobPre, JobPost from avocado.utils import process
CONFIG_SECTION = 'plugins.jobscripts' CONFIG_SECTION = 'plugins.jobscripts'
......
...@@ -18,7 +18,7 @@ import os ...@@ -18,7 +18,7 @@ import os
import sqlite3 import sqlite3
import datetime import datetime
from .base import CLI from avocado.core.plugin_interfaces import CLI
from avocado.core.result import TestResult from avocado.core.result import TestResult
from avocado.core.result import register_test_result_class from avocado.core.result import register_test_result_class
......
...@@ -17,10 +17,9 @@ JSON output module. ...@@ -17,10 +17,9 @@ JSON output module.
""" """
from avocado.core.jsonresult import JSONTestResult from avocado.core.jsonresult import JSONTestResult
from avocado.core.plugin_interfaces import CLI
from avocado.core.result import register_test_result_class from avocado.core.result import register_test_result_class
from .base import CLI
class JSON(CLI): class JSON(CLI):
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
import logging import logging
import sys import sys
from avocado.core import exit_codes, output from avocado.core import exit_codes, output
from avocado.core import loader from avocado.core import loader
from avocado.core import test from avocado.core import test
from avocado.core.plugin_interfaces import CLICmd
from avocado.utils import astring from avocado.utils import astring
from .base import CLICmd
class TestLister(object): class TestLister(object):
......
...@@ -18,10 +18,9 @@ import sys ...@@ -18,10 +18,9 @@ import sys
from avocado.core import exit_codes, output from avocado.core import exit_codes, output
from avocado.core import multiplexer from avocado.core import multiplexer
from avocado.core import tree from avocado.core import tree
from avocado.core.plugin_interfaces import CLICmd
from avocado.core.settings import settings from avocado.core.settings import settings
from .base import CLICmd
class Multiplex(CLICmd): class Multiplex(CLICmd):
......
...@@ -18,10 +18,9 @@ Plugins information plugin ...@@ -18,10 +18,9 @@ Plugins information plugin
import logging import logging
from avocado.core import dispatcher from avocado.core import dispatcher
from avocado.core.plugin_interfaces import CLICmd
from avocado.utils import astring from avocado.utils import astring
from .base import CLICmd
class Plugins(CLICmd): class Plugins(CLICmd):
......
...@@ -20,12 +20,11 @@ import sys ...@@ -20,12 +20,11 @@ import sys
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.core import remoter from avocado.core import remoter
from avocado.core.plugin_interfaces import CLI
from avocado.core.remote import RemoteTestResult from avocado.core.remote import RemoteTestResult
from avocado.core.remote import RemoteTestRunner from avocado.core.remote import RemoteTestRunner
from avocado.core.result import register_test_result_class from avocado.core.result import register_test_result_class
from .base import CLI
class Remote(CLI): class Remote(CLI):
......
...@@ -17,10 +17,10 @@ import logging ...@@ -17,10 +17,10 @@ import logging
import os import os
import sys import sys
from .base import CLI from avocado.core import exit_codes
from avocado.core import replay from avocado.core import replay
from avocado.core import status from avocado.core import status
from avocado.core import exit_codes from avocado.core.plugin_interfaces import CLI
from avocado.core.settings import settings from avocado.core.settings import settings
......
...@@ -24,10 +24,9 @@ from avocado.core import exit_codes ...@@ -24,10 +24,9 @@ from avocado.core import exit_codes
from avocado.core import job from avocado.core import job
from avocado.core import loader from avocado.core import loader
from avocado.core import multiplexer from avocado.core import multiplexer
from avocado.core.plugin_interfaces import CLICmd
from avocado.core.settings import settings from avocado.core.settings import settings
from .base import CLICmd
class Run(CLICmd): class Run(CLICmd):
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
System information plugin System information plugin
""" """
from .base import CLICmd from avocado.core.plugin_interfaces import CLICmd
from avocado.core import sysinfo from avocado.core import sysinfo
......
...@@ -20,12 +20,11 @@ import sys ...@@ -20,12 +20,11 @@ import sys
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.core import virt from avocado.core import virt
from avocado.core.plugin_interfaces import CLI
from avocado.core.remote import VMTestResult from avocado.core.remote import VMTestResult
from avocado.core.remote import VMTestRunner from avocado.core.remote import VMTestRunner
from avocado.core.result import register_test_result_class from avocado.core.result import register_test_result_class
from .base import CLI
class VM(CLI): class VM(CLI):
......
...@@ -17,10 +17,9 @@ import os ...@@ -17,10 +17,9 @@ import os
import sys import sys
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.core.plugin_interfaces import CLI
from avocado.utils import process from avocado.utils import process
from .base import CLI
class Wrapper(CLI): class Wrapper(CLI):
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
"""xUnit module.""" """xUnit module."""
from avocado.core.plugin_interfaces import CLI
from avocado.core.result import register_test_result_class from avocado.core.result import register_test_result_class
from avocado.core.xunit import xUnitTestResult from avocado.core.xunit import xUnitTestResult
from .base import CLI
class XUnit(CLI): class XUnit(CLI):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册