From e0534658356fc76b4bddd3ced23cfda957f66dd2 Mon Sep 17 00:00:00 2001 From: Sriram R Date: Fri, 17 Nov 2017 15:13:36 +0530 Subject: [PATCH] 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 --- tests/hwsim/test_ap_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_config.py b/tests/hwsim/test_ap_config.py index 329bbb249..0825ecb99 100644 --- a/tests/hwsim/test_ap_config.py +++ b/tests/hwsim/test_ap_config.py @@ -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):