Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
108428ef
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,发现更多精彩内容 >>
未验证
提交
108428ef
编写于
6月 26, 2018
作者:
X
Xu Han
提交者:
GitHub
6月 26, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1238 from sitoliu/timerdevice
timerdevice: fix error to get hardware time
上级
f41ef572
dce7e59c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
9 deletion
+9
-9
qemu/tests/cfg/timedrift_adjust_time.cfg
qemu/tests/cfg/timedrift_adjust_time.cfg
+2
-2
qemu/tests/cfg/timedrift_no_net.cfg
qemu/tests/cfg/timedrift_no_net.cfg
+2
-2
qemu/tests/cfg/timerdevice.cfg
qemu/tests/cfg/timerdevice.cfg
+2
-2
qemu/tests/timedrift_adjust_time.py
qemu/tests/timedrift_adjust_time.py
+1
-1
qemu/tests/timedrift_no_net.py
qemu/tests/timedrift_no_net.py
+1
-1
qemu/tests/timedrift_no_net_win.py
qemu/tests/timedrift_no_net_win.py
+1
-1
未找到文件。
qemu/tests/cfg/timedrift_adjust_time.cfg
浏览文件 @
108428ef
- timedrift_adjust_time:
no
RHEL.3,4,5 WinXp Win2000 Win2003
WinVista
no
WinXp, Win2000, Win2003,
WinVista
virt_test_type = qemu libvirt
clock_source = 'kvm-clock'
type = timedrift_adjust_time
...
...
@@ -69,7 +69,7 @@
workaround_timeout = 360
guest_epoch_time_cmd = 'powershell -command "& {$datetime=get-date -uformat "%c";'
guest_epoch_time_cmd += '$epoch=[int](get-date (get-date).touniversaltime() -uformat "%s");'
guest_epoch_time_cmd += 'write-host "datetime: ${datetime} epoch: ${epoch}"}'
guest_epoch_time_cmd += 'write-host "datetime: ${datetime} epoch: ${epoch}"}
"
'
timedrift_adjust_time.guest_pause_resume.clock_host.adjust_host_clock:
time_difference = 3600
timedrift_adjust_time.guest_reboot.clock_host.adjust_guest_clock:
...
...
qemu/tests/cfg/timedrift_no_net.cfg
浏览文件 @
108428ef
...
...
@@ -7,7 +7,7 @@
Linux:
type = timedrift_no_net
date_time_command = date -u +'TIME: %a %m/%d/%Y %H:%M:%S.%N'
date_time_filter_re = "(?:TIME: \w\w\w )(.{19})(.+)"
date_time_filter_re = "(?:TIME: \w\w\w )(.{19})(
?:
.+)"
date_time_format = "%m/%d/%Y %H:%M:%S"
hwclock_time_command = LC_TIME=C hwclock -u
hwclock_time_filter_re = "(.+)"
...
...
@@ -18,7 +18,7 @@
Windows:
type = timedrift_no_net_win
date_time_command = "echo TIME: %date% %time%"
date_time_filter_re = "(?:TIME: \w\w\w )(.{19})(.+)"
date_time_filter_re = "(?:TIME: \w\w\w )(.{19})(
?:
.+)"
date_time_format = "%m/%d/%Y %H:%M:%S"
nettype = user # It is enough to avoid ntpdate or similar update
# guest time
...
...
qemu/tests/cfg/timerdevice.cfg
浏览文件 @
108428ef
...
...
@@ -90,8 +90,8 @@
vcpu_socket = 2
- newer_msrs_support_check:
only Linux
no Host_RHEL.m
3,m4,m5
Host_RHEL.m6.u0
no RHEL.
3,4,5 RHEL.6.0,1,2,
3
no Host_RHEL.m
5,
Host_RHEL.m6.u0
no RHEL.
6.0, RHEL.6.1, RHEL.6.2, RHEL.6.
3
type = timerdevice_kvmclock_newer_msrs_support
rtc_base = utc
rtc_clock = host
...
...
qemu/tests/timedrift_adjust_time.py
浏览文件 @
108428ef
...
...
@@ -117,7 +117,7 @@ class TimedriftTest(object):
try
:
guest_timestr
=
session
.
cmd_output
(
guest_epoch_time_cmd
,
timeout
=
12
0
)
timeout
=
24
0
)
host_timestr
=
process
.
system_output
(
host_epoch_time_cmd
,
shell
=
True
)
epoch_host
,
epoch_guest
=
list
(
...
...
qemu/tests/timedrift_no_net.py
浏览文件 @
108428ef
...
...
@@ -148,7 +148,7 @@ def run(test, params, env):
session
.
close
()
if
sub_work
in
globals
():
# Try to find sub work function.
globals
()[
sub_work
](
params
,
vm
,
session
)
globals
()[
sub_work
](
test
,
params
,
vm
,
session
)
else
:
test
.
cancel
(
"Unable to found subwork %s in %s test file."
%
(
sub_work
,
__file__
))
...
...
qemu/tests/timedrift_no_net_win.py
浏览文件 @
108428ef
...
...
@@ -143,7 +143,7 @@ def run(test, params, env):
session
.
close
()
if
sub_work
in
globals
():
# Try to find sub work function.
globals
()[
sub_work
](
params
,
vm
,
session
)
globals
()[
sub_work
](
test
,
params
,
vm
,
session
)
else
:
test
.
cancel
(
"Unable to found subwork %s in %s test file."
%
(
sub_work
,
__file__
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录