mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 10:13:10 +00:00
tests: Remove containers after running clonetest
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
2ed29824dc
commit
0898897a3a
@ -80,9 +80,9 @@ int main(int argc, char *argv[])
|
||||
// now test with lvm
|
||||
// Only do this if clonetestlvm1 exists - user has to set this up
|
||||
// in advance
|
||||
//c2->destroy(c2);
|
||||
c2->destroy(c2);
|
||||
lxc_container_put(c2);
|
||||
//c->destroy(c);
|
||||
c->destroy(c);
|
||||
lxc_container_put(c);
|
||||
c = NULL;
|
||||
|
||||
@ -167,11 +167,11 @@ out:
|
||||
lxc_container_put(c3);
|
||||
}
|
||||
if (c2) {
|
||||
//c2->destroy(c2); // keep around to verify manuall
|
||||
c2->destroy(c2);
|
||||
lxc_container_put(c2);
|
||||
}
|
||||
if (c) {
|
||||
//c->destroy(c);
|
||||
c->destroy(c);
|
||||
lxc_container_put(c);
|
||||
}
|
||||
exit(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user