tests: Wait explicitly for the guest vm to boot

Instead of blindly waiting for 20-40s for the guest VM to boot, this
patch waits the notification from the guest VM explicitly by using a
simple TcpListener on the host and a custom systemd service in the
guest.

This patch also ported few tests to use this new machanism, while more
tests are to be ported.

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2020-10-26 16:46:04 -07:00
committed by Bo Chen
parent cc67a05474
commit 8c92d1dbdc
4 changed files with 167 additions and 14 deletions
Generated
+1
View File
@@ -217,6 +217,7 @@ dependencies = [
"clap",
"credibility",
"dirs",
"epoll",
"hypervisor",
"lazy_static",
"libc",