Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[microTVM][RVM] Skip USB device attach if device is already attached (#…
…8737) * [microTVM][RVM] Skip USB device attach if device is already attached Currently, when the VirtualBox provider is selected, if base-box-tool.py 'test' command is used and a VM is already running with the USB device necessary to perform the tests already attached to it the command fails because it tries to blindly attach again the USB device without checking if device is already attached. The failure can be reproduced by first running a VM for testing (the tests need to fail and leave the VM running): $ ./base-box-tool.py --provider virtualbox test --microtvm-board=stm32f746g_disco then one tries to re-run the tests without building the whole VM again: $ ./base-box-tool.py --provider virtualbox test --skip-build zephyr --microtvm-board=stm32f746g_disco This commit fixes that error by checking and properly skipping the USB device attach if it's already attached to the VirtualBox VM. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * areusch review: Use --machinereadable for the output Use 'showvminfo --machinereadable' output to parse for more robustness to updates in VBoxManage.
- Loading branch information