Unverified Commit 371fb550 by 2xsec Committed by Christian Brauner

tests: cleanup api_reboot.c

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent e994c989
...@@ -59,6 +59,7 @@ int main(int argc, char *argv[]) ...@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
lxc_error("%s\n", "Container \"reboot\" is not defined"); lxc_error("%s\n", "Container \"reboot\" is not defined");
goto on_error_put; goto on_error_put;
} }
c->clear_config(c); c->clear_config(c);
if (!c->load_config(c, NULL)) { if (!c->load_config(c, NULL)) {
...@@ -118,7 +119,9 @@ on_error_stop: ...@@ -118,7 +119,9 @@ on_error_stop:
on_error_put: on_error_put:
lxc_container_put(c); lxc_container_put(c);
if (ret == EXIT_SUCCESS) if (ret == EXIT_SUCCESS)
lxc_debug("%s\n", "All reboot tests passed"); lxc_debug("%s\n", "All reboot tests passed");
exit(ret); 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