start:updatenode_diskful_syncfiles_failing
description: Test exit code when syncfiles failing.
label:others,updatenode
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:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
cmd:updatenode $$CN -F >/tmp/updatenode.F.out
check:rc!=0
cmd:grep '"/tmp/non-existent" failed: No such file or directory' /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
cmd:rm -rf /tmp/updatenode.F.out
end
