提交 8922d74d 编写于 作者: C Cleber Rosa

Merge branch 'test_api_refactoring_data_dir'

......@@ -28,6 +28,7 @@ import fnmatch
from avocado import multiplexer
from avocado import runtime
from avocado import data_dir
from avocado.core import runner
from avocado.core import loader
from avocado.core import sysinfo
......
......@@ -24,7 +24,7 @@ import re
import sys
from avocado import test
from avocado.core import data_dir
from avocado import data_dir
from avocado.utils import path
try:
......
......@@ -39,7 +39,7 @@ from avocado.utils.data_structures import Borg
from avocado.settings import settings
_BASE_DIR = os.path.join(sys.modules[__name__].__file__, "..", "..", "..")
_BASE_DIR = os.path.join(sys.modules[__name__].__file__, "..", "..")
_BASE_DIR = os.path.abspath(_BASE_DIR)
_IN_TREE_TESTS_DIR = os.path.join(_BASE_DIR, 'examples', 'tests')
......
......@@ -13,7 +13,7 @@
# Author: Lucas Meneghel Rodrigues <lmr@redhat.com>
from avocado.core import output
from avocado.core import data_dir
from avocado import data_dir
from avocado.settings import settings
from avocado.plugins import plugin
......
......@@ -15,8 +15,8 @@
import sys
from avocado import test
from avocado import data_dir
from avocado.core import loader
from avocado.core import data_dir
from avocado.core import output
from avocado.core import exit_codes
from avocado.utils import astring
......
......@@ -16,8 +16,8 @@
import os
from avocado import data_dir
from avocado.core import exceptions
from avocado.core import data_dir
from avocado.core.result import HumanTestResult
from avocado.utils import remote
from avocado.utils import virt
......
......@@ -31,9 +31,9 @@ if sys.version_info[:2] == (2, 6):
else:
import unittest
from avocado import data_dir
from avocado import multiplexer
from avocado.core import sysinfo
from avocado.core import data_dir
from avocado.core import exceptions
from avocado.utils import genio
from avocado.utils import path as utils_path
......@@ -65,7 +65,7 @@ class Test(unittest.TestCase):
reserved for running random executables as tests.
:param base_logdir: Directory where test logs should go. If None
provided, it'll use
:func:`avocado.core.data_dir.create_job_logs_dir`.
:func:`avocado.data_dir.create_job_logs_dir`.
:param tag: Tag that differentiates 2 executions of the same test name.
Example: 'long', 'short', so we can differentiate
'sleeptest.long' and 'sleeptest.short'.
......
......@@ -138,7 +138,7 @@ provided, it will fall back to (we hope) reasonable defaults, and we
notify the user about that in the output of the command.
The relevant API documentation and meaning of each of those data directories
is in :mod:`avocado.core.data_dir`, so it's higly recommended you take a look.
is in :mod:`avocado.data_dir`, so it's highly recommended you take a look.
You may set your preferred data dirs by setting them in the avocado config files.
The only exception for important data dirs here is the avocado tmp dir, used to
......
......@@ -13,8 +13,8 @@ basedir = os.path.abspath(basedir)
if os.path.isdir(os.path.join(basedir, 'avocado')):
sys.path.append(basedir)
from avocado import data_dir
from avocado.core import job_id
from avocado.core import data_dir
from avocado.utils import process
......
......@@ -47,7 +47,7 @@ class DataDirTest(unittest.TestCase):
# Trick the module to think we're on a system wide install
stg.intree = False
flexmock(settings, settings=stg)
from avocado.core import data_dir
from avocado import data_dir
flexmock(data_dir, settings=stg)
self.assertFalse(data_dir.settings.intree)
reload(data_dir)
......
......@@ -6,9 +6,9 @@ import os
from flexmock import flexmock, flexmock_teardown
from avocado import remote
from avocado import data_dir
from avocado.utils import archive
from avocado.utils import remote as utils_remote
from avocado.core import data_dir
cwd = os.getcwd()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册