3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

test-runner: move remove_absolute_path_dirs call

remove_absolute_path_dirs() was not getting called in some test
failure cases. This caused subsequent tests to fail due to stale
files existing.
This commit is contained in:
James Prestwood 2017-06-02 11:33:00 -07:00 committed by Denis Kenzior
parent 23d9b4c089
commit 1cd1183916

View File

@ -1589,8 +1589,6 @@ static void create_network_and_run_tests(const void *key, void *value,
l_info("Destructing network..."); l_info("Destructing network...");
remove_absolute_path_dirs(tmpfs_extra_stuff);
/* Script has responsibility to cleanup any iwd instances it started */ /* Script has responsibility to cleanup any iwd instances it started */
if (iwd_pid > 0) if (iwd_pid > 0)
terminate_iwd(iwd_pid); terminate_iwd(iwd_pid);
@ -1604,6 +1602,7 @@ exit_hwsim:
l_queue_destroy(wiphy_list, wiphy_free); l_queue_destroy(wiphy_list, wiphy_free);
l_settings_free(hw_settings); l_settings_free(hw_settings);
remove_absolute_path_dirs(tmpfs_extra_stuff);
l_strfreev(tmpfs_extra_stuff); l_strfreev(tmpfs_extra_stuff);
} }