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
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"
exit 1
}
......
......@@ -37,7 +37,7 @@ switch $current {
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
# add some sleep here. Still better would be to
......
......@@ -45,7 +45,7 @@ echo "The CT $name was dumped successfully"
echo Press Enter for restoring CT
read
echo "Restore the CT $name ($pid)"
echo "Restore the CT $name"
${crtools} restore --evasive-devices \
--tcp-established \
--file-locks \
......@@ -54,7 +54,7 @@ ${crtools} restore --evasive-devices \
--veth-pair eth0=$name.0 \
--root /root/test-lxc-root \
--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"
pid=`cat data/newpid.log`;
......
......@@ -41,7 +41,7 @@ wait_tasks dump
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"
exit 1
}
......
......@@ -23,7 +23,7 @@ wait_tasks dump
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"
exit 1
}
......
......@@ -55,7 +55,7 @@ ${crtools} dump --shell-job -D dump -o dump.log -v 4 -t ${pid} || {
wait_tasks dump
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"
exit 1
}
......
......@@ -17,7 +17,7 @@ $crtools dump -j --tcp-established -D data/ -o dump.log -v 4 -t $pid || {
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"
exit 1
}
......
......@@ -67,7 +67,7 @@ for SNAP in $(seq 1 $NRSNAP); do
done
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/
make mem-touch.out
......
......@@ -64,7 +64,7 @@ for SNAP in $(seq 1 $NRSNAP); do
done
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/
make mem-touch.out
......
......@@ -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"
sleep 1
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 "${TEXT}" >&3
......
......@@ -385,8 +385,8 @@ EOF
done
done
echo Restore $PID
setsid $CRTOOLS restore --file-locks --tcp-established -x -D $ddump -o restore.log -v 4 -d -t $PID $args || return 2
echo Restore
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
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