[CRIU] [PATCH 7/7] p.haul: adapt zdtm test to new p.haul usage semantics
Nikita Spiridonov
nspiridonov at odin.com
Tue Oct 6 08:28:35 PDT 2015
Adapt zdtm test to new semantics since standalone mode was
removed from p.haul (only work over existing connections supported
for now).
Signed-off-by: Nikita Spiridonov <nspiridonov at odin.com>
---
test/zdtm/run.sh | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/test/zdtm/run.sh b/test/zdtm/run.sh
index 08d3312..6c936f7 100755
--- a/test/zdtm/run.sh
+++ b/test/zdtm/run.sh
@@ -13,6 +13,7 @@ CRIU_TESTS="${CRIU_PATH}/test/zdtm/"
WDIR="$(pwd)/wdir"
PH=$(realpath ../../p.haul)
PHS=$(realpath ../../p.haul-service)
+PHWRAP=$(realpath ../../p.haul-wrap)
PHSSH=$(realpath ../../p.haul-ssh)
# setup EXIT trap
@@ -34,7 +35,7 @@ mkdir "$WDIR"
# run local p.haul server in background if --local option specified
if [ "x${LOCAL_PHS}" == "xtrue" ]; then
echo "Run local p.haul service"
- ${PHS} &> "/tmp/phs.log" &
+ ${PHWRAP} service &> "/tmp/phs.log" &
if [ ${?} -ne 0 ]; then
echo "Can't run local p.haul service"
exit 1
@@ -56,11 +57,13 @@ which criu
echo "Migrating"
if [ "x${LOCAL_PHS}" == "xtrue" ]; then
- ${PH} pid ${PID} "127.0.0.1" -v=4 --keep-images \
+ ${PHWRAP} client "127.0.0.1" pid ${PID} -v=4 --keep-images \
--dst-rpid "${WDIR}/init2.pid" --img-path "${WDIR}"
else
- ${PHSSH} --ssh-ph-exec ${PH} --ssh-phs-exec ${PHS} pid ${PID} "127.0.0.1" \
- -v=4 --keep-images --dst-rpid "${WDIR}/init2.pid" --img-path "${WDIR}"
+ ${PHSSH} --ssh-ph-exec ${PH} --ssh-ph-wrap-exec ${PHWRAP} \
+ --ssh-phs-exec ${PHS} --ssh-phs-wrap-exec ${PHWRAP} \
+ "127.0.0.1" pid ${PID} -v=4 --keep-images \
+ --dst-rpid "${WDIR}/init2.pid" --img-path "${WDIR}"
fi
if [ ${?} -ne 0 ]; then
--
1.7.1
More information about the CRIU
mailing list