Commit 96d6fc3d authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

test/*: remove -t from criu restore

Since commit 43ce038e -t is not required for restore,
plus a warning is printed if it is used. Let's remove
-t from criu restore in all test cases.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent bfe77ea7
...@@ -30,7 +30,7 @@ wait_tasks dump ...@@ -30,7 +30,7 @@ wait_tasks dump
echo "Dumped, restoring and waiting for completion" echo "Dumped, restoring and waiting for completion"
${crtools} restore -D dump -o restore.log -v 4 --shell-job -t ${pid} || { ${crtools} restore -D dump -o restore.log -v 4 --shell-job || {
echo "Restore failed" echo "Restore failed"
exit 1 exit 1
} }
......
...@@ -37,7 +37,7 @@ switch $current { ...@@ -37,7 +37,7 @@ switch $current {
exit -1 exit -1
} }
spawn ../../../crtools restore -v 4 -D ./dump -o restore.log -j -t $pid spawn ../../../crtools restore -v 4 -D ./dump -o restore.log -j
# #
# spawn doesn't wait for restore to complete, so # spawn doesn't wait for restore to complete, so
# add some sleep here. Still better would be to # add some sleep here. Still better would be to
......
...@@ -45,7 +45,7 @@ echo "The CT $name was dumped successfully" ...@@ -45,7 +45,7 @@ echo "The CT $name was dumped successfully"
echo Press Enter for restoring CT echo Press Enter for restoring CT
read read
echo "Restore the CT $name ($pid)" echo "Restore the CT $name"
${crtools} restore --evasive-devices \ ${crtools} restore --evasive-devices \
--tcp-established \ --tcp-established \
--file-locks \ --file-locks \
...@@ -54,7 +54,7 @@ ${crtools} restore --evasive-devices \ ...@@ -54,7 +54,7 @@ ${crtools} restore --evasive-devices \
--veth-pair eth0=$name.0 \ --veth-pair eth0=$name.0 \
--root /root/test-lxc-root \ --root /root/test-lxc-root \
--pidfile newpid.log \ --pidfile newpid.log \
-vvvv -D data -d -o restore.log -t $pid || exit 1 -vvvv -D data -d -o restore.log || exit 1
echo "The CT $name was restored successfully" echo "The CT $name was restored successfully"
pid=`cat data/newpid.log`; pid=`cat data/newpid.log`;
......
...@@ -41,7 +41,7 @@ wait_tasks dump ...@@ -41,7 +41,7 @@ wait_tasks dump
echo "Dumped, restoring and waiting for completion" echo "Dumped, restoring and waiting for completion"
${crtools} restore --shell-job -D dump -o restore.log -v 4 -t ${pid} || { ${crtools} restore --shell-job -D dump -o restore.log -v 4 || {
echo "Restore failed" echo "Restore failed"
exit 1 exit 1
} }
......
...@@ -23,7 +23,7 @@ wait_tasks dump ...@@ -23,7 +23,7 @@ wait_tasks dump
echo "Dumped, restoring and waiting for completion" echo "Dumped, restoring and waiting for completion"
${crtools} restore -d -D dump -o restore.log -v 4 -t ${pid} || { ${crtools} restore -d -D dump -o restore.log -v 4 || {
echo "Restore failed" echo "Restore failed"
exit 1 exit 1
} }
......
...@@ -55,7 +55,7 @@ ${crtools} dump --shell-job -D dump -o dump.log -v 4 -t ${pid} || { ...@@ -55,7 +55,7 @@ ${crtools} dump --shell-job -D dump -o dump.log -v 4 -t ${pid} || {
wait_tasks dump wait_tasks dump
echo "Dump OK, restoring" echo "Dump OK, restoring"
${crtools} restore --shell-job -D dump -o restore.log -v 4 -t ${pid} || { ${crtools} restore --shell-job -D dump -o restore.log -v 4 || {
echo "Restore failed" echo "Restore failed"
exit 1 exit 1
} }
......
...@@ -17,7 +17,7 @@ $crtools dump -j --tcp-established -D data/ -o dump.log -v 4 -t $pid || { ...@@ -17,7 +17,7 @@ $crtools dump -j --tcp-established -D data/ -o dump.log -v 4 -t $pid || {
wait_tasks dump wait_tasks dump
$crtools restore -j --tcp-established -D data/ -d -o restore.log -v 4 -t $pid || { $crtools restore -j --tcp-established -D data/ -d -o restore.log -v 4 || {
echo "Restore failed" echo "Restore failed"
exit 1 exit 1
} }
......
...@@ -67,7 +67,7 @@ for SNAP in $(seq 1 $NRSNAP); do ...@@ -67,7 +67,7 @@ for SNAP in $(seq 1 $NRSNAP); do
done done
echo "Restoring" echo "Restoring"
${CRTOOLS} restore -D "${IMGDIR}/$NRSNAP/" -o restore.log -t ${PID} -d -v 4 || fail "Fail to restore server" ${CRTOOLS} restore -D "${IMGDIR}/$NRSNAP/" -o restore.log -d -v 4 || fail "Fail to restore server"
cd ../zdtm/live/static/ cd ../zdtm/live/static/
make mem-touch.out make mem-touch.out
......
...@@ -64,7 +64,7 @@ for SNAP in $(seq 1 $NRSNAP); do ...@@ -64,7 +64,7 @@ for SNAP in $(seq 1 $NRSNAP); do
done done
echo "Restoring" echo "Restoring"
${CRTOOLS} restore -D "${IMGDIR}/$NRSNAP/" -o restore.log -t ${PID} -d -v 4 || fail "Fail to restore server" ${CRTOOLS} restore -D "${IMGDIR}/$NRSNAP/" -o restore.log -d -v 4 || fail "Fail to restore server"
cd ../zdtm/live/static/ cd ../zdtm/live/static/
make mem-touch.out make mem-touch.out
......
...@@ -44,7 +44,7 @@ echo "Suspend server" ...@@ -44,7 +44,7 @@ echo "Suspend server"
${CRTOOLS} dump -D ${DDIR} -o dump.log -t ${SRV_PID} --tcp-established -vvvv || fail "Fail to dump server" ${CRTOOLS} dump -D ${DDIR} -o dump.log -t ${SRV_PID} --tcp-established -vvvv || fail "Fail to dump server"
sleep 1 sleep 1
echo "Resume server" echo "Resume server"
${CRTOOLS} restore -D ${DDIR} -o restore.log -t ${SRV_PID} -d --tcp-established -vvvv --close 3 || fail "Fail to restore server" ${CRTOOLS} restore -D ${DDIR} -o restore.log -d --tcp-established -vvvv --close 3 || fail "Fail to restore server"
echo "Make client run again" echo "Make client run again"
echo "${TEXT}" >&3 echo "${TEXT}" >&3
......
...@@ -385,8 +385,8 @@ EOF ...@@ -385,8 +385,8 @@ EOF
done done
done done
echo Restore $PID echo Restore
setsid $CRTOOLS restore --file-locks --tcp-established -x -D $ddump -o restore.log -v 4 -d -t $PID $args || return 2 setsid $CRTOOLS restore --file-locks --tcp-established -x -D $ddump -o restore.log -v 4 -d $args || return 2
for i in `seq 5`; do for i in `seq 5`; do
save_fds $PID $ddump/restore.fd save_fds $PID $ddump/restore.fd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment