tests: Fix ap_config_reload_on_sighup test

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>
This commit is contained in:
Sriram R 2017-11-17 15:13:36 +05:30 committed by Jouni Malinen
parent 21fd5576a5
commit e053465835

View file

@ -131,7 +131,7 @@ def test_ap_config_reload_on_sighup(dev, apdev, params):
"ap_config_reload_on_sighup-hostapd.pid") "ap_config_reload_on_sighup-hostapd.pid")
logfile = os.path.join(params['logdir'], logfile = os.path.join(params['logdir'],
"ap_config_reload_on_sighup-hostapd-log") "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") "ap_config_reload_on_sighup-hostapd.conf")
prg = os.path.join(params['logdir'], 'alt-hostapd/hostapd/hostapd') prg = os.path.join(params['logdir'], 'alt-hostapd/hostapd/hostapd')
if not os.path.exists(prg): if not os.path.exists(prg):