From: Christian Brauner Date: Tue, 17 Aug 2021 10:14:53 +0000 (+0200) Subject: tests: fix order in sys_mixed X-Git-Tag: lxc-5.0.0~108^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd0349a7a0fe6283f13d72d5587799089986b1e3;p=thirdparty%2Flxc.git tests: fix order in sys_mixed We need to set the config item after we loaded the config obviously. Signed-off-by: Christian Brauner --- diff --git a/src/tests/sys_mixed.c b/src/tests/sys_mixed.c index b8f21f5a3..785f6e867 100644 --- a/src/tests/sys_mixed.c +++ b/src/tests/sys_mixed.c @@ -106,16 +106,16 @@ int main(int argc, char *argv[]) c->clear_config(c); - if (!c->set_config_item(c, "lxc.mount.auto", "sys:mixed")) { - lxc_error("%s\n", "Failed to set config item \"lxc.mount.auto=sys:mixed\""); - goto on_error_put; - } - if (!c->load_config(c, NULL)) { lxc_error("%s\n", "Failed to load config for container \"sys-mixed\""); goto on_error_stop; } + if (!c->set_config_item(c, "lxc.mount.auto", "sys:mixed")) { + lxc_error("%s\n", "Failed to set config item \"lxc.mount.auto=sys:mixed\""); + goto on_error_put; + } + if (!c->want_daemonize(c, true)) { lxc_error("%s\n", "Failed to mark container \"sys-mixed\" daemonized"); goto on_error_stop;