diff --git a/xCAT-test/autotest/testcase/updatenode/cases3 b/xCAT-test/autotest/testcase/updatenode/cases3 new file mode 100644 index 000000000..675d23ed2 --- /dev/null +++ b/xCAT-test/autotest/testcase/updatenode/cases3 @@ -0,0 +1,16 @@ +start:updatenode_diskful_syncfiles_failing +description: Test exit code when syncfiles failing. +cmd:mkdir -p /install/custom/install/__GETNODEATTR($$CN,os)__/ +check:rc==0 +cmd:echo "/tmp/non-existent -> /etc/motd" > /install/custom/install/__GETNODEATTR($$CN,os)__/booboo.synclist +check:rc==0 +cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute synclists=/install/custom/install/__GETNODEATTR($$CN,os)__/booboo.synclist +check:rc==0 +cmd:updatenode $$CN -F >/tmp/updatenode.F.out +check:rc!=0 +cmd:grep 'updatenode exited with code 1' /tmp/updatenode.F.out +check:rc==0 +cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute synclists= +check:rc==0 +cmd:rm -f /install/custom/install/__GETNODEATTR($$CN,os)__/booboo.synclist +end