未验证 提交 f7de0528 编写于 作者: R Rudá Moura

Isolate avocado.job from being used by test developers.

Move avocado.job to avocado.core.job, in conformance to our
purpose of keeping things not related to test developers,
inside avocado.core, isolated from users.
Signed-off-by: NRudá Moura <rmoura@redhat.com>
上级 206f6fe0
......@@ -22,7 +22,7 @@ from avocado.settings import settings
from avocado.core import exit_codes
from avocado.plugins import plugin
from avocado.core import output
from avocado import job
from avocado.core import job
from avocado import multiplexer
......
......@@ -46,7 +46,7 @@ class TestRunner(object):
"""
Creates an instance of TestRunner class.
:param job: an instance of :class:`avocado.job.Job`.
:param job: an instance of :class:`avocado.core.job.Job`.
:param test_result: an instance of :class:`avocado.result.TestResult`.
"""
self.job = job
......
......@@ -208,7 +208,7 @@ the :func:`assert` class methods on your tests. Some silly examples::
The reason why we have a shebang in the beginning of the test is because
avocado tests, similarly to unittests, can use an entry point, called
:func:`avocado.job.main`, that calls avocado libs to look for test classes and execute
:func:`avocado.core.job.main`, that calls avocado libs to look for test classes and execute
its main entry point. This is an optional, but fairly handy feature. In case
you want to use it, don't forget to ``chmod +x`` your test.
......
......@@ -3,7 +3,7 @@
import os
from avocado import test
from avocado import job
from avocado.core import job
class AbortTest(test.Test):
......
......@@ -4,7 +4,7 @@ import os
import shutil
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import build
from avocado.utils import process
......
......@@ -4,7 +4,7 @@ import os
import shutil
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import build
from avocado.utils import process
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
from avocado.core import exceptions
......
......@@ -5,7 +5,7 @@ import shutil
import signal
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import build
from avocado.utils import process
......
......@@ -3,7 +3,7 @@
import os
import shutil
from avocado import job
from avocado.core import job
from avocado import test
from avocado.utils import build
from avocado.utils import process
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
from avocado.core import exceptions
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
from avocado.core import exceptions
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
class NastyException(Exception):
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
class NastyException(Exception):
......
......@@ -3,7 +3,7 @@
import os
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import archive
from avocado.utils import build
from avocado.utils import process
......
......@@ -4,7 +4,7 @@ import os
from avocado import test
from avocado import gdb
from avocado import job
from avocado.core import job
from avocado.utils import process
......
......@@ -3,7 +3,7 @@
import os
from avocado import test
from avocado import job
from avocado.core import job
class GenDataTest(test.Test):
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
from avocado.linux import kernel_build
......
......@@ -4,7 +4,7 @@ import os
import shutil
from avocado import gdb
from avocado import job
from avocado.core import job
from avocado import test
from avocado.utils import build
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
class MultipleTests(test.Test):
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
class MultiplexTest(test.Test):
......
#!/usr/bin/python
from avocado import job
from avocado.core import job
from avocado import test
......
......@@ -4,7 +4,7 @@ import os
import shutil
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import build
from avocado.utils import process
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
from avocado.core import exceptions
......
......@@ -3,7 +3,7 @@
import os
import time
from avocado import job
from avocado.core import job
from avocado import test
......
......@@ -2,7 +2,7 @@
import time
from avocado import job
from avocado.core import job
from avocado import test
......
......@@ -3,7 +3,7 @@
import os
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import archive
from avocado.utils import build
from avocado.utils import process
......
......@@ -3,7 +3,7 @@
import time
from avocado import test
from avocado import job
from avocado.core import job
class TimeoutTest(test.Test):
......
......@@ -3,7 +3,7 @@
import os
from avocado import test
from avocado import job
from avocado.core import job
from avocado.utils import archive
from avocado.utils import build
from avocado.utils import process
......
#!/usr/bin/python
from avocado import test
from avocado import job
from avocado.core import job
from avocado.core import exceptions
......
......@@ -3,7 +3,7 @@
import base64
from avocado import test
from avocado import job
from avocado.core import job
class WhiteBoard(test.Test):
......
......@@ -18,7 +18,7 @@ from avocado.utils import script
from avocado.utils import process
AVOCADO_TEST_OK = """#!/usr/bin/python
from avocado import job
from avocado.core import job
from avocado import test
class PassTest(test.Test):
......@@ -30,7 +30,7 @@ if __name__ == "__main__":
"""
AVOCADO_TEST_BUGGY = """#!/usr/bin/python
from avocado import job
from avocado.core import job
from avocado import test
import adsh
......
......@@ -14,7 +14,7 @@ if os.path.isdir(os.path.join(basedir, 'avocado')):
from avocado.plugins import jsonresult
from avocado import test
from avocado import job
from avocado.core import job
class _Stream(object):
......
......@@ -18,7 +18,7 @@ from avocado import loader
from avocado import test
AVOCADO_TEST_OK = """#!/usr/bin/python
from avocado import job
from avocado.core import job
from avocado import test
class PassTest(test.Test):
......@@ -30,7 +30,7 @@ if __name__ == "__main__":
"""
AVOCADO_TEST_BUGGY = """#!/usr/bin/python
from avocado import job
from avocado.core import job
from avocado import test
import adsh
......
......@@ -14,7 +14,7 @@ if os.path.isdir(os.path.join(basedir, 'avocado')):
from avocado.plugins import xunit
from avocado import test
from avocado import job
from avocado.core import job
class ParseXMLError(Exception):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册