mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-03 20:15:45 +00:00
tests: Make boot notifications retry
If the guest fails to communicate with the test harness then retry. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
b5653d5278
commit
17c9e2cd4b
@ -56,6 +56,8 @@ write_files:
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/cloud-hypervisor-notify-booted.sh
|
ExecStart=/usr/bin/cloud-hypervisor-notify-booted.sh
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=2
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
@ -65,5 +67,6 @@ write_files:
|
|||||||
permissions: 0755
|
permissions: 0755
|
||||||
content: |
|
content: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
echo -n "@DEFAULT_TCP_LISTENER_MESSAGE" | nc -w0 @HOST_IP @TCP_LISTENER_PORT
|
echo -n "@DEFAULT_TCP_LISTENER_MESSAGE" | nc -w0 @HOST_IP @TCP_LISTENER_PORT
|
||||||
|
Loading…
Reference in New Issue
Block a user