diff options
author | Andrei Otcheretianski <andrei.otcheretianski@intel.com> | 2018-10-23 11:07:05 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2018-11-22 13:53:30 (GMT) |
commit | 79bbafd78ccf1a9e4835a85ca252eadf20a17e94 (patch) | |
tree | 926a2c10ed354b49162a1c12b431dc1b6477af23 /wpa_supplicant | |
parent | fcc65290d420dc19c8905c6344329181c41a55c3 (diff) | |
download | hostap-79bbafd78ccf1a9e4835a85ca252eadf20a17e94.zip hostap-79bbafd78ccf1a9e4835a85ca252eadf20a17e94.tar.gz hostap-79bbafd78ccf1a9e4835a85ca252eadf20a17e94.tar.bz2 |
tests: Store the correct PID in hostapd-test.pid file
The hwsim's start.sh script spawns hostapd process using "sudo".
Since sudo forks a child process, $! holds the pid of sudo itself.
Fix that by storing the PID of the child process instead.
Since in VM "sudo" is replaced with a dummy script, pass an additional
argument to run-all.sh and start.sh scripts to indicate that they are
running inside a VM.
This is needed to fix ap_config_reload and ap_config_reload_file test
cases on some platforms where sudo is apparently not relaying the
signals properly.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Diffstat (limited to 'wpa_supplicant')
0 files changed, 0 insertions, 0 deletions