Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
954ebf4d
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
954ebf4d
编写于
12月 15, 2014
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #308 from lmr/fix-var-tmp
avocado: Remove references to /var/tmp/avocado
上级
16627559
ee741044
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
7 deletion
+7
-7
avocado/core/data_dir.py
avocado/core/data_dir.py
+2
-2
docs/source/Configuration.rst
docs/source/Configuration.rst
+3
-3
docs/source/WritingTests.rst
docs/source/WritingTests.rst
+2
-2
未找到文件。
avocado/core/data_dir.py
浏览文件 @
954ebf4d
...
...
@@ -54,13 +54,13 @@ if 'VIRTUAL_ENV' in os.environ:
SYSTEM_TEST_DIR
=
os
.
path
.
join
(
SYSTEM_BASE_DIR
,
'tests'
)
SYSTEM_DATA_DIR
=
os
.
path
.
join
(
SYSTEM_BASE_DIR
,
'data'
)
SYSTEM_LOG_DIR
=
os
.
path
.
join
(
SYSTEM_BASE_DIR
,
'job-results'
)
SYSTEM_TMP_DIR
=
'/var/tmp
/avocado
'
SYSTEM_TMP_DIR
=
'/var/tmp'
USER_BASE_DIR
=
os
.
path
.
expanduser
(
'~/avocado'
)
USER_TEST_DIR
=
os
.
path
.
join
(
USER_BASE_DIR
,
'tests'
)
USER_DATA_DIR
=
os
.
path
.
join
(
USER_BASE_DIR
,
'data'
)
USER_LOG_DIR
=
os
.
path
.
join
(
USER_BASE_DIR
,
'job-results'
)
USER_TMP_DIR
=
'/var/tmp
/avocado
'
USER_TMP_DIR
=
'/var/tmp'
def
_usable_rw_dir
(
directory
):
...
...
docs/source/Configuration.rst
浏览文件 @
954ebf4d
...
...
@@ -16,7 +16,7 @@ that contain a number of `keys` and `values`. Take for example a basic avocado c
test_dir = /$HOME/Code/avocado/examples/tests
data_dir = /usr/share/avocado/data
logs_dir = ~/avocado/job-results
tmp_dir = /var/tmp
/avocado
tmp_dir = /var/tmp
The ``runner`` section contains a number of keys, all of them related to directories used by
the test runner. The ``base_dir`` is the base directory to other important avocado directories, such
...
...
@@ -82,7 +82,7 @@ configuration, after all the files are parsed in their correct resolution order.
runner.test_dir $HOME/Code/avocado/examples/tests
runner.data_dir /usr/share/avocado/data
runner.logs_dir ~/avocado/job-results
runner.tmp_dir /var/tmp
/avocado
runner.tmp_dir /var/tmp
The command also shows the order in which your config files were parsed, giving you a better understanding of
what's going on. The Section.Key nomenclature was inspired in ``git config --list`` output.
...
...
@@ -118,7 +118,7 @@ it will give you an output similar to the one seen below::
tests $HOME/Code/avocado/examples/tests
data $HOME/avocado/data
logs $HOME/avocado/job-results
tmp /var/tmp
/avocado
tmp /var/tmp
Note that, while avocado will do its best to use the config values you
provide in the config file, if it can't write values to the locations
...
...
docs/source/WritingTests.rst
浏览文件 @
954ebf4d
...
...
@@ -662,9 +662,9 @@ Here are the current variables that Avocado exports to the tests:
+-------------------------+---------------------------------------+-----------------------------------------------------------------------------------------------------+
| AVOCADO_TEST_DATADIR | Data directory for the test | $AVOCADO_TEST_BASEDIR/my_test.sh.data |
+-------------------------+---------------------------------------+-----------------------------------------------------------------------------------------------------+
| AVOCADO_TEST_WORKDIR | Work directory for the test | /var/tmp/
avocado/my_test.sh
|
| AVOCADO_TEST_WORKDIR | Work directory for the test | /var/tmp/
my_test.sh
|
+-------------------------+---------------------------------------+-----------------------------------------------------------------------------------------------------+
| AVOCADO_TEST_SRCDIR | Source directory for the test | /var/tmp/
avocado/my-test.sh/src
|
| AVOCADO_TEST_SRCDIR | Source directory for the test | /var/tmp/
my-test.sh/src
|
+-------------------------+---------------------------------------+-----------------------------------------------------------------------------------------------------+
| AVOCADO_TEST_LOGDIR | Log directory for the test | $HOME/logs/job-results/job-2014-09-16T14.38-ac332e6/test-results/$HOME/my_test.sh.1 |
+-------------------------+---------------------------------------+-----------------------------------------------------------------------------------------------------+
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录