2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #3049 from junxiawang/0515

Add test case for openbmc rspconfig command #2912
This commit is contained in:
zet809
2017-05-15 10:23:24 +08:00
committed by GitHub

View File

@@ -92,4 +92,13 @@ cmd:rspconfig $$CN gateway=ddd
check:rc!=0
end
start:rspconfig_node_invalid
despcription:rspconfig could not do any action using invalid node
cmd:test=$(lsdef testnode);if [[ $? -eq 0 ]]; then lsdef -l testnode -z >/tmp/testnode.stanza ;rmdef testnode;fi
check:rc==0
cmd:rspconfig testnode ip
check:rc!=0
cmd:if [[ -e /tmp/testnode.stanza ]]; then cat /tmp/testnode.stanza | chdef -z;rm -rf /tmp/testnode.stanza;fi
check:rc==0
end