3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-27 02:32:52 +01:00
iwd/autotests/util
James Prestwood b0e970ae38 test-runner: fix logging, verbose, and process output
There were some major problems related to logging and process
output. Tests which required output from start_process would
break if used with '--log/--verbose'. This is because we relied
on 'communicate' to retrieve the process output, but Popen does
not store process output when stdout/stderr are anything other
than PIPE.

Intead, in the case of logging or outfiles, we can simply read
from the file we just wrote to.

For an explicit --verbose application we must handle things
slightly different. A keyword argument was added to Process,
'need_out' which will ensure the process output is kept
regardless of --log or --verbose.

Now a user should be able to use --log/--verbose without any
tests failing.
2021-01-26 13:41:23 -06:00
..
config.py auto-t: introduce pure python test-runner re-write 2020-09-10 17:59:49 -05:00
ead.py auto-t: update utilities to use namespaces 2020-11-18 11:01:11 -06:00
hlrauc.py autotest: fix possible hlrauc race condition 2018-01-18 14:43:53 -06:00
hostapd.py test-runner: fix logging, verbose, and process output 2021-01-26 13:41:23 -06:00
hwsim.py auto-t: add iftype/cipher disable to hwsim.py 2020-12-17 20:13:41 -06:00
iwd.py auto-t: fix wait_for_object_condition 2021-01-25 13:10:52 -06:00
ofono.py auto-t: update utilities to use namespaces 2020-11-18 11:01:11 -06:00
testutil.py auto-t: support IP match with no IP set 2020-12-08 15:15:42 -06:00
wpas.py autotests: Add basic wpa_supplicant P2P python wrapper 2020-10-19 17:20:21 -05:00