Commit e60e630c by Serge Hallyn Committed by Stéphane Graber

snapshot test: make sure that external snapshot was really created

parent ce7aee4d
...@@ -126,6 +126,12 @@ int main(int argc, char *argv[]) ...@@ -126,6 +126,12 @@ int main(int argc, char *argv[])
goto err; goto err;
} }
c2 = lxc_container_new(RESTNAME, NULL);
if (!c2 || !c2->is_defined(c2)) {
fprintf(stderr, "%s: %d: external snapshot restore failed\n", __FILE__, __LINE__);
goto err;
}
lxc_container_put(c2);
c2 = c->clone(c, MYNAME2, NULL, LXC_CLONE_SNAPSHOT, "overlayfs", NULL, 0, NULL); c2 = c->clone(c, MYNAME2, NULL, LXC_CLONE_SNAPSHOT, "overlayfs", NULL, 0, NULL);
if (!c2) { if (!c2) {
......
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