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

t-runner: add exit on hwsim failure

This commit is contained in:
Tim Kourt 2016-05-13 14:34:56 -07:00 committed by Denis Kenzior
parent 86e42a80e7
commit eb6e3a5753

View File

@ -1277,7 +1277,9 @@ static void create_network_and_run_tests(const void *key, void *value,
l_info("Configuring network...");
configure_hw_radios(hw_settings, hwsim_radio_ids, interface_names);
if (!configure_hw_radios(hw_settings, hwsim_radio_ids,
interface_names))
goto exit_hwsim;
list_hwsim_radios();
@ -1305,6 +1307,7 @@ static void create_network_and_run_tests(const void *key, void *value,
exit_hostapd:
destroy_hostapd_instances(hostapd_pids);
exit_hwsim:
destroy_hw_radios(hwsim_radio_ids, interface_names);
l_settings_free(hw_settings);