diff --git a/xCAT-test/autotest/testcase/nodestat/cases1 b/xCAT-test/autotest/testcase/nodestat/cases1 new file mode 100644 index 000000000..f9c7ce03a --- /dev/null +++ b/xCAT-test/autotest/testcase/nodestat/cases1 @@ -0,0 +1,5 @@ +start:nodestat_usage +description: Test the exit code when no command line argument is passed to nodestat +cmd:nodestat +check:rc!=0 +end diff --git a/xCAT-test/autotest/testcase/xdsh/cases1 b/xCAT-test/autotest/testcase/xdsh/cases1 new file mode 100644 index 000000000..37286b5d3 --- /dev/null +++ b/xCAT-test/autotest/testcase/xdsh/cases1 @@ -0,0 +1,11 @@ +start:xdsh_permission_denied +description: Test the exit code when command xdsh failed +cmd:xdsh $$CN date +check:rc==0 +cmd:mv /root/.ssh/id_rsa /root/.ssh/id_rsa.backup +check:rc==0 +cmd:xdsh $$CN date +check:rc!=0 +cmd:mv /root/.ssh/id_rsa.backup /root/.ssh/id_rsa +check:rc==0 +end