Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
0bff44f5
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0bff44f5
编写于
3月 12, 2014
作者:
Y
Yiqiao Pu
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #24 from FengYang/control
control_files.control.kernel-version: Make it works with new folder stru...
上级
425f23f1
17ff1e2a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
4 deletion
+10
-4
qemu/control_files/control.kernel-version
qemu/control_files/control.kernel-version
+10
-4
未找到文件。
qemu/control_files/control.kernel-version
浏览文件 @
0bff44f5
...
...
@@ -14,7 +14,7 @@ adapting the tests executed to the host machine.
Online docs: https://github.com/autotest/virt-test/wiki
"""
import sys, os, logging, re, commands, inspect
import sys, os, logging, re, commands, inspect
, shutil
from distutils import version
virt_test_dir = os.path.join(os.environ['AUTODIR'],'tests/virt')
...
...
@@ -23,6 +23,8 @@ sys.path.insert(0, virt_test_dir)
from virttest import utils_misc, cartesian_config, data_dir, bootstrap
from autotest.client.shared import logging_manager
os.environ['LANG'] = 'en_US.UTF-8'
cur_file = inspect.getfile(inspect.currentframe())
qemu_test_dir = "/".join(cur_file.split("/")[:-2])
def update_config(verbose=None):
...
...
@@ -34,13 +36,18 @@ def update_config(verbose=None):
# cur_file = inspect.getfile(inspect.currentframe())
# t_type = os.path.basename(os.path.dirname(cur_file))
t_type = "qemu"
test_dir = os.path.join(data_dir.get_root_dir(), t_type
)
cfg_folder = os.path.join(qemu_test_dir, "cfg"
)
shared_dir = os.path.join(data_dir.get_root_dir(), "shared")
bootstrap.create_config_files(test_dir, shared_dir,
bootstrap.create_config_files(
qemu_
test_dir, shared_dir,
interactive=False,
force_update=True)
bootstrap.create_subtests_cfg(t_type)
bootstrap.create_guest_os_cfg(t_type)
backend_cfg = test_dir = os.path.join(data_dir.get_root_dir(), "backends",
t_type, "cfg")
for src in os.listdir(backend_cfg):
src = os.path.join(backend_cfg, src)
shutil.copy(src, cfg_folder)
def package_check(dict_test, verbose=False):
...
...
@@ -106,7 +113,6 @@ def package_check(dict_test, verbose=False):
return True
qemu_test_dir = os.path.join(os.environ['AUTODIR'],'tests/virt/qemu')
update_config()
parser = cartesian_config.Parser()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录