From e5dd79d55eb169e79f455a75200ee20dcdd0aaf5 Mon Sep 17 00:00:00 2001 From: junxiawang Date: Wed, 21 Jun 2017 14:56:38 +0800 Subject: [PATCH] add nodeset_errorcommand testcase for issue :3175 (#3300) --- xCAT-test/autotest/testcase/nodeset/cases0 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/nodeset/cases0 b/xCAT-test/autotest/testcase/nodeset/cases0 index 6972152d3..d43f6ae66 100644 --- a/xCAT-test/autotest/testcase/nodeset/cases0 +++ b/xCAT-test/autotest/testcase/nodeset/cases0 @@ -196,4 +196,11 @@ cmd:noderm testnode1 cmd:rmdef -t osimage -o "__GETNODEATTR($$CN,os)__-x86_64-install-compute" cmd:cp -f /etc/hosts.xcattestbak /etc/hosts end - +start:nodeset_errorcommand +description:This testcase is to very nodeset osimage errorcommand could give right output +Attribute: $$CN-The operation object of nodeset command +cmd:nodeset $$CN osimage= __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute +check:rc==1 +check:output=~Error: Invalid argument: +check:output=~Usage: nodeset +end