2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

13 lines
308 B
Plaintext

start:xdsh_permission_denied
description: Test the exit code when command xdsh failed
label:cn_os_ready,parallel_cmds
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