From: Jonathan Afek Date: Thu, 19 May 2016 13:06:48 +0000 (+0300) Subject: tests/remote: Fix usage of a non existing variable X-Git-Tag: hostap_2_6~454 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0335ff7f69046b1d0acfea2621d0311a19408646;p=thirdparty%2Fhostap.git tests/remote: Fix usage of a non existing variable In monitor.py in the remote tests code there is fucntion create() that creates standalone monitor interfaces. In this function there is an iteration of the ifaces of the host by using the ifaces variable but this variable is non-existing. This patch creates this variable before its usage. Signed-off-by: Jonathan Afek --- diff --git a/tests/remote/monitor.py b/tests/remote/monitor.py index 22518e0aa..5071322f7 100644 --- a/tests/remote/monitor.py +++ b/tests/remote/monitor.py @@ -37,6 +37,7 @@ def create(devices, setup_params, refs, duts, monitors): try: host.execute(["iw", "reg", "set", setup_params['country']]) setup_hw = setup_params['setup_hw'] + ifaces = re.split('; | |, ', host.ifname) for iface in ifaces: host.execute(setup_hw + " -I " + iface + " -R 1") except: