]> git.proxmox.com Git - mirror_lxc.git/commitdiff
tests: cleanup api_reboot.c
author2xsec <dh48.jeong@samsung.com>
Tue, 3 Jul 2018 09:09:32 +0000 (18:09 +0900)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 3 Jul 2018 10:44:32 +0000 (12:44 +0200)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/tests/api_reboot.c

index d169510b56368a67c6c38f21fa3211ea6d9165ca..730d6a81a5fff43df045cf7c0b81a8b923ab0f79 100644 (file)
@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
                lxc_error("%s\n", "Container \"reboot\" is not defined");
                goto on_error_put;
        }
+
        c->clear_config(c);
 
        if (!c->load_config(c, NULL)) {
@@ -118,7 +119,9 @@ on_error_stop:
 
 on_error_put:
        lxc_container_put(c);
+
        if (ret == EXIT_SUCCESS)
                lxc_debug("%s\n", "All reboot tests passed");
+
        exit(ret);
 }