From 1cd1183916da8de248f543ad6d253f71f2c4875d Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 2 Jun 2017 11:33:00 -0700 Subject: [PATCH] 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. --- tools/test-runner.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/test-runner.c b/tools/test-runner.c index b3ea5f65..3e07d20b 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -1589,8 +1589,6 @@ static void create_network_and_run_tests(const void *key, void *value, l_info("Destructing network..."); - remove_absolute_path_dirs(tmpfs_extra_stuff); - /* Script has responsibility to cleanup any iwd instances it started */ if (iwd_pid > 0) terminate_iwd(iwd_pid); @@ -1604,6 +1602,7 @@ exit_hwsim: l_queue_destroy(wiphy_list, wiphy_free); l_settings_free(hw_settings); + remove_absolute_path_dirs(tmpfs_extra_stuff); l_strfreev(tmpfs_extra_stuff); }