From cb2e77f015a67125bc71393192d11644b37e9852 Mon Sep 17 00:00:00 2001 From: caomengmeng Date: Thu, 10 Dec 2015 01:11:50 -0500 Subject: [PATCH] complete v1 --- xCAT-test/autotest/testcase/updatenode/cases0 | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/xCAT-test/autotest/testcase/updatenode/cases0 b/xCAT-test/autotest/testcase/updatenode/cases0 index fcb319020..4bbd5ca91 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases0 +++ b/xCAT-test/autotest/testcase/updatenode/cases0 @@ -301,6 +301,34 @@ check:rc==0 #cmd:rm /install/postscripts/updatenode_P_script_input end +start:updatenode_f_incompatible_flags +description:check if -f flag incompatible with -S,-P or -F flags +cmd:updatenode $$CN -f -S +check:rc==1 +check:output=~If you specify the -f flag you must not specify either the -S or -k or -P or -F flags +cmd:updatenode $$CN -f -P +check:rc==1 +check:output=~If you specify the -f flag you must not specify either the -S or -k or -P or -F flags +cmd:updatenode $$CN -f -F +check:rc==1 +check:output=~Choose either -f to sync the service nodes, or -F to sync the nodes +end + +start:updatenode_k_incompatible_flags +description:check if -k flag incompatible with -S,-P,-F or -f flags +cmd:updatenode $$CN -k -S +check:rc==1 +check:output=~If you use the -k flag, you cannot specify the -S,-P,-f or -F flags +cmd:updatenode $$CN -k -P +check:rc==1 +check:output=~If you use the -k flag, you cannot specify the -S,-P,-f or -F flags +cmd:updatenode $$CN -k -F +check:rc==1 +check:output=~If you use the -k flag, you cannot specify the -S,-P,-f or -F flags +cmd:updatenode $$CN -k -f +check:rc==1 +check:output=~If you use the -k flag, you cannot specify the -S,-P,-f or -F flags +end