mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
b83a5989d9
If crosvm fails at the early stage of setup, opening to_guest fifo blocks forever and it takes 20 seconds to timeout. Opening to_guest fifo should be wrapped by timeout as well as from_guest. Check the crosvm process status periodically to abort testing earlier. With this change, the total e2etest execution for failure case is reduced to 0.2s from 20s. There is better way without panicking on timeout; interrupt the blocked open(2) for fifo by pthread_kill(). However it is too much since this is just a test. panicking is welcome. BUG=b:293383846 TEST=./tools/run_tests2 --dut=vm -E 'rdeps(e2e_tests)' Change-Id: I8735a77201f930162113efa98d655f77be8d259d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4721027 Reviewed-by: Dennis Kempin <denniskempin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Shin Kawamura <kawasin@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |