mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 01:56:39 +00:00
add a new case updatenode_syncfile_EXECUTEALWAYS_noderange_hierarchy to cover test for bug 5755
This commit is contained in:
parent
316f0e275f
commit
878d2726ea
@ -525,3 +525,33 @@ cmd:chtab key=xcatdebugmode site.value=0
|
||||
check:rc==0
|
||||
end
|
||||
|
||||
start:updatenode_syncfile_EXECUTEALWAYS_noderange_hierarchy
|
||||
label:others,updatenode
|
||||
description:this teast case is to verify bug #5755,synclist: EXECUTEALWAYS ignore noderange. This test case should be executed on mn with hierarchy environment, with at least 2 installed diskful cn.In this case, $$CN and $$C2 are the 2 compute nodes.
|
||||
cmd:xdsh $$CN,$$C2 rm /tmp/file.post
|
||||
cmd:xdsh $$CN,$$C2 rm /tmp/test
|
||||
cmd:echo "echo hello >> /tmp/test" > /tmp/file.post
|
||||
check:rc==0
|
||||
cmd:chmod a+x /tmp/file.post
|
||||
cmd:echo "/tmp/file.post -> ($$CN) /tmp/file.post" > /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
|
||||
cmd:echo "EXECUTEALWAYS:" >> /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
|
||||
cmd:echo "/tmp/file.post" >> /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
|
||||
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute synclists=/install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
|
||||
check:rc==0
|
||||
cmd:updatenode $$CN -F
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN "cat /tmp/test"
|
||||
check:rc==0
|
||||
check:output=~hello
|
||||
cmd:updatenode $$C2 -F
|
||||
check:rc==0
|
||||
cmd:xdsh $$C2 ls /tmp/file.post
|
||||
check:rc!=0
|
||||
cmd:xdsh $$C2 "cat /tmp/test"
|
||||
check:rc!=0
|
||||
check:output!=~hello
|
||||
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute synclists=
|
||||
check:rc==0
|
||||
cmd:rm -rf /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
|
||||
check:rc==0
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user