]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Introduce hwsim radio context manager
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Oct 2014 10:00:05 +0000 (12:00 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 21 Oct 2014 14:35:20 +0000 (17:35 +0300)
commit8a5cc2fe385bc8afa4260f8953664db9861430eb
tree0fad4e80cf173f3b50cfc993c68566e21d7dd1c0
parent91d7a9a1c50ed33ee8073df209f6e823df8f90d5
tests: Introduce hwsim radio context manager

The new HWSimRadio context manager allows the following
syntax to create (and appropriately destroy) a new radio:

  with HWSimRadio([...]) as (radio_id, iface_name):
    [...]

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/hwsim.py