]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix ap_config_reload_on_sighup test
authorSriram R <srirrama@qti.qualcomm.com>
Fri, 17 Nov 2017 09:43:36 +0000 (15:13 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 17 Nov 2017 17:13:10 +0000 (19:13 +0200)
Use absolute path name for configuration file to ensure the file can be
succesfully reloaded and read on SIGHUP signal. This is needed when
running the test case on host (i.e., not using a VM).

Signed-off-by: Sriram R <srirrama@qti.qualcomm.com>
tests/hwsim/test_ap_config.py

index 329bbb249299be6ae14f62f40d484bd3de2dd354..0825ecb99e47f979b1d1962dba8581a85bc3bf46 100644 (file)
@@ -131,7 +131,7 @@ def test_ap_config_reload_on_sighup(dev, apdev, params):
                            "ap_config_reload_on_sighup-hostapd.pid")
     logfile = os.path.join(params['logdir'],
                            "ap_config_reload_on_sighup-hostapd-log")
-    conffile = os.path.join(params['logdir'],
+    conffile = os.path.join(os.getcwd(), params['logdir'],
                             "ap_config_reload_on_sighup-hostapd.conf")
     prg = os.path.join(params['logdir'], 'alt-hostapd/hostapd/hostapd')
     if not os.path.exists(prg):