From: Tom Hromatka Date: Thu, 24 Mar 2022 15:00:30 +0000 (-0600) Subject: ftests: Allow overriding of container name X-Git-Tag: v3.1.0~308^2~2^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=717a7ef178ce28138329028bc56d30f85ca4f910;p=thirdparty%2Flibcgroup.git ftests: Allow overriding of container name The parameter --name was previously added to allow overriding the container's name, but it wasn't fully plumbed. Enable the --name feature by fully connecting it down to the Container class. Signed-off-by: Tom Hromatka Reviewed-by: Kamalesh Babulal --- diff --git a/ftests/config.py b/ftests/config.py index b65d31c7..e14d28fe 100644 --- a/ftests/config.py +++ b/ftests/config.py @@ -23,7 +23,7 @@ class Config(object): self.container = container else: # Use the default container settings - self.container = Container(name=consts.DEFAULT_CONTAINER_NAME, + self.container = Container(name=args.name, stop_timeout=args.timeout, arch=None, distro=args.distro, diff --git a/ftests/ftests.py b/ftests/ftests.py index ee8faba0..af357a9f 100755 --- a/ftests/ftests.py +++ b/ftests/ftests.py @@ -30,7 +30,7 @@ def parse_args(): help='name of the container', required=False, type=str, - default=None + default=consts.DEFAULT_CONTAINER_NAME ) parser.add_argument( '-d', '--distro',