Commit 5f845c92 by Tycho Andersen Committed by Stéphane Graber

Allow criu >= 1.3 in c/r test

criu version 1.3 has been tagged, which has the minimal set of patches to allow checkpointing and restoring containers. lxc-test-checkpoint-restore is now skipped on any version of criu lower than 1.3. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 7c8f5230
......@@ -15,7 +15,13 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
if [ "$(criu --version | head -n1 | cut -d' ' -f 2)" != "1.3-rc2" ]; then
verlte() {
! [ "$1" = "$(printf "$1\n$2" | sort -V | tail -n1)" ]
}
criu_version="$(criu --version | head -n1 | cut -d' ' -f 2)"
if verlte "$criu_version" "1.3"; then
echo "SKIP: skipping test because no (or wrong) criu installed."
exit 0
fi
......
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