tests: Use cmd_execute() for ip link set up/down commands
authorJonathan Afek <jonathan@wizery.com>
Thu, 23 Jun 2016 17:16:29 +0000 (20:16 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jun 2016 18:10:35 +0000 (21:10 +0300)
commit10e09d83167d292f620c4ce8a870868f8864722d
tree4a62c89b695c2c30b5d0d15d31bae639dfb42daa
parent137fd0509955060aeac62c5a17f02ae44307b496
tests: Use cmd_execute() for ip link set up/down commands

The hwsim tests used to execute shell commands in the tests using the
subprocess python module. Use the cmd_execute() general function for
executing "ip link set up/down" commands so that this would also work on
remote setups.

Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
tests/hwsim/test_ap_open.py
tests/hwsim/test_ap_psk.py