]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Fix createtest
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 04:30:14 +0000 (23:30 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 16:33:45 +0000 (11:33 -0500)
Drop 60s delay and clear config before loading it.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/tests/createtest.c

index b53c9638476b9d68cd3585fb294bf8d8c1f79131..ba3a387b2a1397c458056c56fe208a8c2a395eaa 100644 (file)
@@ -60,14 +60,13 @@ int main(int argc, char *argv[])
                goto out;
        }
 
+       c->clear_config(c);
        c->load_config(c, NULL);
        c->want_daemonize(c, true);
        if (!c->startl(c, 0, NULL)) {
                fprintf(stderr, "%d: failed to start %s\n", __LINE__, MYNAME);
                goto out;
        }
-       fprintf(stderr, "%d: %s started, you have 60 seconds to test a console\n", __LINE__, MYNAME);
-       sleep(60);  // wait a minute to let user connect to console
 
        if (!c->stop(c)) {
                fprintf(stderr, "%d: failed to stop %s\n", __LINE__, MYNAME);