podman: fix command invocation
authorJohn Snow <jsnow@redhat.com>
Fri, 13 Sep 2019 19:38:21 +0000 (15:38 -0400)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 26 Sep 2019 18:00:53 +0000 (19:00 +0100)
Oops; there's no argv here.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20190913193821.17756-1-jsnow@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
tests/docker/docker.py

index 3112892fdf5ea672ba4ee7d8f48ffe3c5bc66bc3..31d8adf836eb4a1a12b0539e4b83185b9c11728f 100755 (executable)
@@ -332,7 +332,7 @@ class Docker(object):
             cmd = [ "-u", str(uid) ] + cmd
             # podman requires a bit more fiddling
             if self._command[0] == "podman":
-                argv.insert(0, '--userns=keep-id')
+                cmd.insert(0, '--userns=keep-id')
 
         ret = self._do_check(["run", "--label",
                              "com.qemu.instance.uuid=" + label] + cmd,