2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00
2017-08-31 22:56:32 -04:00

20 lines
964 B
Plaintext

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: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