Unverified Commit 340b5fc0 by Long Wang Committed by Stéphane Graber

tests: remove the temp container directory

c->destory() will not remove the temp container directory. This patch fix that. Signed-off-by: 's avatarLong Wang <w@laoqinren.net>
parent 7540645b
......@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <libgen.h>
#include "confile_utils.h"
#include "lxc/state.h"
......@@ -530,7 +531,7 @@ int main(int argc, char *argv[])
ret = EXIT_SUCCESS;
non_test_error:
c->destroy(c);
(void)rmdir(dirname(c->configfile));
lxc_container_put(c);
exit(ret);
}
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