operating-system/tests/qemu-strategy.yaml
Jan Čermák 2888ccf28e
Improve handling of timeouts in tests (#2890)
* Improve handling of timeouts in tests

Make timeout handling in tests more transparent. Added a custom shell
driver that allows to define global timeout for commands in the config
file, and replaced for/sleep constructs with infinite loops that will be
eventually terminated by pytest-timeout plugin. Current timeouts taken
from last runs on Github CI with some extra headroom.

* test_supervisor_is_updated shouldn't be skipped if no update was needed

* Allow more time for system startup

* Allow even more time for system startup
2023-10-31 18:16:49 +01:00

33 lines
679 B
YAML

targets:
main:
resources: []
drivers:
- QEMUDriver:
qemu_bin: qemu-x86_64
machine: pc
cpu: qemu64
memory: 1G
extra_args: "-snapshot -accel kvm"
nic: user,model=virtio-net-pci
disk: disk-image
bios: bios
- CustomTimeoutShellDriver:
login_prompt: 'homeassistant login: '
username: 'root'
prompt: '# '
login_timeout: 300
command_timeout: 300
- QEMUShellStrategy: {}
tools:
qemu-x86_64: /usr/bin/qemu-system-x86_64
images:
disk-image: ./haos.qcow2
bios: /usr/share/ovmf/OVMF.fd
imports:
- qemu_shell_strategy.py