2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-29 22:38:19 +00:00
Files
xcat-core/xCAT-test/autotest/testcase/xdcp/cases1
2017-04-20 16:58:38 +08:00

23 lines
594 B
Plaintext

start:xdcp_github_issue2637
cmd:useradd -m xyzzy
check:rc==0
cmd:( cd ~ && tar cf - .xcat .ssh ) | ( cd ~xyzzy && tar xf - )
check:rc==0
cmd:chown -R xyzzy ~xyzzy/.xcat ~xyzzy/.ssh
check:rc==0
cmd:xdsh $$CN "useradd -m xyzzy"
check:rc==0
cmd:xdsh $$CN "( cd ~ && tar cf - .ssh ) | ( cd ~xyzzy && tar xf - )"
check:rc==0
cmd:xdsh $$CN "chown -R xyzzy ~xyzzy/.ssh"
check:rc==0
cmd:su -c "xdcp $$CN /etc/sysctl.conf /tmp/sysctl.conf" - xyzzy
check:rc==0
cmd:xdsh $$CN "stat -c '%U' /tmp/sysctl.conf"
check:output=~xyzzy
cmd:xdsh $$CN "userdel xyzzy"
check:rc==0
cmd:userdel xyzzy
check:rc==0
end