Skip to content

Commit

Permalink
fix issue PR xcat2#6001 resulted in test case updatenode_syncfile_EXE…
Browse files Browse the repository at this point in the history
…CUTE failed xcat2#6016
  • Loading branch information
immarvin committed Feb 21, 2019
1 parent 67d5cae commit 9d8c4d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xCAT-test/autotest/testcase/updatenode/cases0
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,11 @@ end

start:updatenode_syncfile_EXECUTE
label:others,updatenode
cmd:touch /tmp/file
cmd:echo "echo hello > /tmp/test" > /tmp/file.post
check:rc==0
cmd:chmod a+x /tmp/file.post
cmd:echo "/tmp/file.post -> /tmp/file.post" > /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
cmd:echo "/tmp/file -> /tmp/file" > /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
cmd:echo "EXECUTE:" >> /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
Expand All @@ -183,6 +184,8 @@ cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-ins
check:rc==0
cmd:rm -rf /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist
check:rc==0
cmd:rm -rf /tmp/file
cmd:rm -rf /tmp/file.post
end

start:updatenode_syncfile_EXECUTEALWAYS
Expand Down

0 comments on commit 9d8c4d0

Please sign in to comment.