pytests: allow blackbox subcommands without a shell
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 4 Oct 2018 03:46:34 +0000 (16:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Nov 2018 08:41:19 +0000 (09:41 +0100)
commitd29d2f2f70223e585eb645caa8bfc18993c47fdc
treeaff058bddbb09d8b5303235c7556380a8c6b4cc5
parent790acef279dedbd93fb98165094002f038e3d265
pytests: allow blackbox subcommands without a shell

When given a list, it will use the list directly as an argument list,
avoiding shell-expansion and the intermediatory process.

This removes shell expansion trouble, and saves the machine a little
bit of work.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py