2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00
GONG Jie 6fb4f5aa4a Add test cases for check exit code when abnormal commands were performed (#2755)
* Add test case for xdsh when permission denied

* Add test case for nodestat for malformed command

* Add test case descriptions for nodestat_usage and xdsh_permission_denied
2017-05-12 03:28:15 -05:00

12 lines
276 B
Plaintext

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