Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
0466ff28
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0466ff28
编写于
1月 20, 2009
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix actual vs expected data comparison order to get correct diff +++/--- output
上级
ead04dcb
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
16 addition
and
10 deletion
+16
-10
ChangeLog
ChangeLog
+6
-0
tests/cpuset
tests/cpuset
+1
-1
tests/read-bufsiz
tests/read-bufsiz
+1
-1
tests/start
tests/start
+2
-2
tests/undefine
tests/undefine
+4
-4
tests/vcpupin
tests/vcpupin
+2
-2
未找到文件。
ChangeLog
浏览文件 @
0466ff28
Tue Jan 20 12:03:53 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* tests/cpuset, tests/read-bufsiz, tests/start, tests/undefine,
tests/vcpupin: Switch order of expected vs actual data in diff
comparison, so output on failure makes sense.
Tue Jan 20 12:01:53 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Thread local error handling
...
...
tests/cpuset
浏览文件 @
0466ff28
...
...
@@ -40,6 +40,6 @@ libvir: Domain Config error : failed Xen syscall topology cpuset syntax error
error: Failed to define domain from xml-invalid
EOF
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
(
exit
$fail
)
;
exit
$fail
tests/read-bufsiz
浏览文件 @
0466ff28
...
...
@@ -37,7 +37,7 @@ for i in before after; do
virsh
--connect
test
:///default define
$in
>
out
||
fail
=
1
printf
"Domain test defined from
$in
\n\n
"
>
exp
||
fail
=
1
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
done
(
exit
$fail
)
;
exit
$fail
tests/start
浏览文件 @
0466ff28
...
...
@@ -34,9 +34,9 @@ virsh -c $test_url start test > out 2> err && fail=1
# stdout gets a newline
echo
>
exp
||
fail
=
1
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
echo
'error: Domain is already active'
>
exp
||
fail
=
1
compare e
rr exp
||
fail
=
1
compare e
xp err
||
fail
=
1
(
exit
$fail
)
;
exit
$fail
tests/undefine
浏览文件 @
0466ff28
...
...
@@ -9,7 +9,7 @@
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITH
OUT
ANY WARRANTY; without even the implied warranty of
# but WITH
EXP
ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
...
...
@@ -32,7 +32,7 @@ cat <<\EOF > exp || fail=1
libvir: Test error : internal error Domain 'test' is still running
error: Failed to undefine domain test
EOF
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
# A different diagnostic when specifying a domain ID
virsh
-q
-c
test
:///default undefine 1
>
out 2>&1
...
...
@@ -41,7 +41,7 @@ cat <<\EOF > exp || fail=1
error: a running domain like 1 cannot be undefined;
to undefine, first shutdown then undefine using its name or UUID
EOF
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
# Succeed, now: first shut down, then undefine, both via name.
virsh
-q
-c
test
:///default
'shutdown test; undefine test'
>
out 2>&1
...
...
@@ -50,6 +50,6 @@ cat <<\EOF > exp || fail=1
Domain test is being shutdown
Domain test has been undefined
EOF
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
(
exit
$fail
)
;
exit
$fail
tests/vcpupin
浏览文件 @
0466ff28
...
...
@@ -32,7 +32,7 @@ cat <<\EOF > exp || fail=1
error: vcpupin: Invalid or missing vCPU number.
EOF
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
# An out-of-range vCPU number deserves a diagnostic, too.
virsh
--connect
test
:///default vcpupin
test
100 0,1
>
out 2>&1
...
...
@@ -41,6 +41,6 @@ cat <<\EOF > exp || fail=1
error: vcpupin: Invalid vCPU number.
EOF
compare
out exp
||
fail
=
1
compare
exp out
||
fail
=
1
(
exit
$fail
)
;
exit
$fail
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录