From 2e338007c7801b52385dc4b061fd085199b069f0 Mon Sep 17 00:00:00 2001 From: 2xsec Date: Tue, 3 Jul 2018 18:09:32 +0900 Subject: [PATCH] tests: cleanup api_reboot.c Signed-off-by: 2xsec --- src/tests/api_reboot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/api_reboot.c b/src/tests/api_reboot.c index d169510b5..730d6a81a 100644 --- a/src/tests/api_reboot.c +++ b/src/tests/api_reboot.c @@ -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); } -- 2.47.2