Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
8922d74d
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8922d74d
编写于
5月 05, 2015
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'test_api_refactoring_data_dir'
上级
4d475908
09616a0c
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
12 addition
and
11 deletion
+12
-11
avocado/core/job.py
avocado/core/job.py
+1
-0
avocado/core/loader.py
avocado/core/loader.py
+1
-1
avocado/data_dir.py
avocado/data_dir.py
+1
-1
avocado/plugins/config.py
avocado/plugins/config.py
+1
-1
avocado/plugins/test_list.py
avocado/plugins/test_list.py
+1
-1
avocado/remote/result.py
avocado/remote/result.py
+1
-1
avocado/test.py
avocado/test.py
+2
-2
docs/source/Configuration.rst
docs/source/Configuration.rst
+1
-1
selftests/all/functional/avocado/argument_parsing_tests.py
selftests/all/functional/avocado/argument_parsing_tests.py
+1
-1
selftests/all/unit/avocado/datadir_unittest.py
selftests/all/unit/avocado/datadir_unittest.py
+1
-1
selftests/all/unit/avocado/remote_unittest.py
selftests/all/unit/avocado/remote_unittest.py
+1
-1
未找到文件。
avocado/core/job.py
浏览文件 @
8922d74d
...
...
@@ -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
...
...
avocado/core/loader.py
浏览文件 @
8922d74d
...
...
@@ -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
:
...
...
avocado/
core/
data_dir.py
→
avocado/data_dir.py
浏览文件 @
8922d74d
...
...
@@ -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'
)
...
...
avocado/plugins/config.py
浏览文件 @
8922d74d
...
...
@@ -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
...
...
avocado/plugins/test_list.py
浏览文件 @
8922d74d
...
...
@@ -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
...
...
avocado/remote/result.py
浏览文件 @
8922d74d
...
...
@@ -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
...
...
avocado/test.py
浏览文件 @
8922d74d
...
...
@@ -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'.
...
...
docs/source/Configuration.rst
浏览文件 @
8922d74d
...
...
@@ -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 hig
ly recommended you take a look.
is in :mod:`avocado.
data_dir`, so it's high
ly 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
...
...
selftests/all/functional/avocado/argument_parsing_tests.py
浏览文件 @
8922d74d
...
...
@@ -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
...
...
selftests/all/unit/avocado/datadir_unittest.py
浏览文件 @
8922d74d
...
...
@@ -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
)
...
...
selftests/all/unit/avocado/remote_unittest.py
浏览文件 @
8922d74d
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录