diff --git a/xCAT-test/autotest/testcase/updatenode/cases0 b/xCAT-test/autotest/testcase/updatenode/cases0 index a225eadba..59281087e 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases0 +++ b/xCAT-test/autotest/testcase/updatenode/cases0 @@ -174,6 +174,7 @@ cmd:echo "echo hello > /tmp/test" > /tmp/updatenode_syncfile_EXECUTE/file.post check:rc==0 cmd:chmod a+x /tmp/updatenode_syncfile_EXECUTE/file.post cmd:echo "/tmp/updatenode_syncfile_EXECUTE/file -> /tmp/file" > /tmp/updatenode_syncfile_EXECUTE/synclist +cmd:echo "/tmp/updatenode_syncfile_EXECUTE/file.post -> /tmp/file.post" >> /tmp/updatenode_syncfile_EXECUTE/synclist cmd:echo "EXECUTE:" >> /tmp/updatenode_syncfile_EXECUTE/synclist cmd:echo "/tmp/updatenode_syncfile_EXECUTE/file.post" >> /tmp/updatenode_syncfile_EXECUTE/synclist cmd:chdef -t osimage -o __GETNODEATTR($$CN,provmethod)__ synclists=/tmp/updatenode_syncfile_EXECUTE/synclist @@ -190,6 +191,13 @@ cmd:xdsh $$CN "cat /tmp/test" check:rc!=0 check:output=~No such file or directory cmd:xdsh $$CN "rm -rf /tmp/test" +cmd:touch /tmp/updatenode_syncfile_EXECUTE/file.post +cmd:updatenode $$CN -F +check:rc==0 +cmd:xdsh $$CN "cat /tmp/test" +check:rc!=0 +check:output=~No such file or directory +cmd:xdsh $$CN "rm -rf /tmp/test" cmd:chdef -t osimage -o __GETNODEATTR($$CN,provmethod)__ synclists= check:rc==0 cmd:rm -rf /tmp/updatenode_syncfile_EXECUTE/