2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Add test case to check exit code when syncfiles failing (#3013)

* Add test case to check exit code when syncfiles failing

* Add test case discription for updatenode_diskful_syncfiles_failing
This commit is contained in:
neo954 2017-05-11 15:39:20 +08:00 committed by yangsong
parent 7d2ac05f4d
commit fefcc2fa1c

View File

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