3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

t-runner: Move chdir into the earlier stages

This commit is contained in:
Tim Kourt 2016-10-11 11:28:51 -07:00 committed by Denis Kenzior
parent 60c4f0bc0d
commit c35366fc38

View File

@ -1437,6 +1437,12 @@ static void create_network_and_run_tests(const void *key, void *value,
l_info("Configuring network...");
if (chdir(config_dir_path) < 0) {
l_error("Failed to change to test directory: %s",
strerror(errno));
goto exit_hwsim;
}
abs_path_dirs =
l_settings_get_string_list(hw_settings, HW_CONFIG_GROUP_SETUP,
HW_CONFIG_SETUP_ABS_PATH_DIRS,
@ -1470,11 +1476,6 @@ static void create_network_and_run_tests(const void *key, void *value,
goto exit_hostapd;
}
if (chdir(config_dir_path) < 0) {
l_error("Failed to change directory");
goto exit_hostapd;
}
run_py_tests(hw_settings, test_queue, test_stats_queue);
l_info("Destructing network...");