diff options
author | James Prestwood <prestwoj@gmail.com> | 2020-03-24 13:24:01 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-03-21 00:10:32 -0500 |
commit | 7d5ce16f1ae0e7c19f341c413a989adb91764850 (patch) | |
tree | 88c24d10656cbbaaeb13ecb1439f90259ff53fbc | |
parent | 972762b1160b20d6a2ed9b73024037fd616e5ce4 (diff) | |
download | iwd-7d5ce16f1ae0e7c19f341c413a989adb91764850.tar.gz |
test-runner: make default iwd_config_dir=/tmp
The configuration value of iwd_config_dir was defaulting to /etc/iwd
which, in the context of test-runner, is probably not the best idea.
The system may have a main.conf file in /etc/iwd which could cause
tests to fail or behave unexpectedly.
In addition all tests which use iwd_config_dir set it to /tmp anyways.
Because of this, the new default value will be /tmp and no tests will
even need to bother setting this.
The configuration value itself is not being removed because it may be
useful to set arbitrary paths (e.g. /etc/iwd) for example when using
the shell functionality.
-rw-r--r-- | tools/test-runner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-runner.c b/tools/test-runner.c index 320dea0b4..54a3bbde9 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -2203,7 +2203,7 @@ static void create_network_and_run_tests(void *data, void *user_data) HW_CONFIG_GROUP_SETUP, HW_CONFIG_SETUP_IWD_CONF_DIR); if (!iwd_config_dir) - iwd_config_dir = DAEMON_CONFIGDIR; + iwd_config_dir = "/tmp"; iwd_pid = start_iwd(iwd_config_dir, wiphy_list, iwd_ext_options, iwd_phys, test_name); |