tests: Use shell in local cmd_execute() only if needed
authorJouni Malinen <j@w1.fi>
Mon, 27 Jun 2016 17:10:23 +0000 (20:10 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jun 2016 18:10:35 +0000 (21:10 +0300)
commite9f2d54f4459c8e35aa8868558f75f27380452f4
tree289d2545dcd38328142fadf6b4d9f303adf2659b
parent31209e1434815012503dafa80682a4212f6d538f
tests: Use shell in local cmd_execute() only if needed

The generic cmd_execute() function was introduced in a manner that
converted the argument array to a string and used shell to run the
command unconditionally. This is not really desirable, so move back to
using the command array by default and use the single command string
with a shell only when really needed.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/hostapd.py
tests/hwsim/test_ap_ciphers.py
tests/hwsim/wpasupplicant.py