mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
t-runner: Move chdir into the earlier stages
This commit is contained in:
parent
60c4f0bc0d
commit
c35366fc38
@ -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...");
|
||||
|
Loading…
Reference in New Issue
Block a user