Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
1eaef86e
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,发现更多精彩内容 >>
提交
1eaef86e
编写于
2月 06, 2017
作者:
S
suqinhuang
提交者:
GitHub
2月 06, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #908 from suqinhuang/fio_windows
Fix typo and cfg of fio_windows
上级
7b9aa0e1
5e2f84fd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
10 deletion
+16
-10
qemu/tests/cfg/fio_windows.cfg
qemu/tests/cfg/fio_windows.cfg
+9
-6
qemu/tests/fio_windows.py
qemu/tests/fio_windows.py
+7
-4
未找到文件。
qemu/tests/cfg/fio_windows.cfg
浏览文件 @
1eaef86e
- fio_windows:
type = fio_windows
only Windows
test_timeout = 600
install_path = "C:\fio"
cmd_timeout = 600
log_file = "C:\fio_log.txt"
image_snapshot = yes
i386, i686:
install_cmd = "msiexec /a DRIVE:\fio-x86.msi /qn TARGETDIR=${install_path}"
install_path = "C:\Program Files\fio"
install_cmd = 'msiexec /a DRIVE:\fio-x86.msi /qn TARGETDIR="${install_path}"'
x86_64:
install_cmd = "msiexec /a DRIVE:\fio-x64.msi /qn TARGETDIR=${install_path}"
config_cmd = 'setx -m path "%PATH%;${install_path}\fio;"'
install_path = "C:\Program Files (x86)\fio"
install_cmd = 'msiexec /a DRIVE:\fio-x64.msi /qn TARGETDIR="${install_path}"'
#config_cmd = 'setx -m path "%PATH%;${install_path}\fio;"'
fio_cmd = '"${install_path}\fio\fio.exe" --name=fiotest --rw=randrw --iodepth=4 --bs=4k'
fio_cmd += ' --size=1G --ioengine=windowsaio --numjobs=4 --runtime=${test_timeout} > ${log_file}'
fio_cmd += ' --size=1G --ioengine=windowsaio --numjobs=4 --runtime=${cmd_timeout} > ${log_file}'
qemu/tests/fio_windows.py
浏览文件 @
1eaef86e
...
...
@@ -26,7 +26,7 @@ def run(test, params, env):
log_file
=
params
.
get
(
"log_file"
)
fio_cmd
=
params
.
get
(
"fio_cmd"
)
timeout
=
float
(
params
.
get
(
"login_timeout"
,
360
))
test_timeout
=
int
(
params
.
get
(
"test
_timeout"
,
"360"
))
cmd_timeout
=
int
(
params
.
get
(
"cmd
_timeout"
,
"360"
))
check_installed_cmd
=
'dir "%s"|findstr /I fio'
%
install_path
check_installed_cmd
=
params
.
get
(
"check_installed_cmd"
,
check_installed_cmd
)
...
...
@@ -49,12 +49,15 @@ def run(test, params, env):
session
.
cmd
(
config_cmd
)
error_context
.
context
(
"Start fio in guest."
,
logging
.
info
)
s
,
o
=
session
.
cmd_status_output
(
fio_cmd
,
timeout
=
(
test
_timeout
+
60
))
s
,
o
=
session
.
cmd_status_output
(
fio_cmd
,
timeout
=
(
cmd
_timeout
+
60
))
if
s
:
raise
exceptions
.
TestError
(
"Failed to run fio, output: %s"
)
%
o
raise
exceptions
.
TestError
(
"Failed to run fio, output: %s"
%
o
)
finally
:
error_context
.
context
(
"Copy fio log from guest to host."
,
logging
.
info
)
vm
.
copy_files_from
(
log_file
,
test
.
resultsdir
)
try
:
vm
.
copy_files_from
(
log_file
,
test
.
resultsdir
)
except
Exception
,
err
:
logging
.
warn
(
"Log file copy failed: %s"
%
err
)
if
session
:
session
.
close
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录