mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
wait for port to be open
This commit is contained in:
parent
d8ea343a69
commit
b5285e6a5c
1 changed files with 6 additions and 1 deletions
7
.github/workflows/build-and-test.yml
vendored
7
.github/workflows/build-and-test.yml
vendored
|
|
@ -181,5 +181,10 @@ jobs:
|
||||||
|
|
||||||
- name: Start a VM
|
- name: Start a VM
|
||||||
run: |
|
run: |
|
||||||
|
mkfifo vm.stdout
|
||||||
|
mkfifo vm.stdin
|
||||||
qemu-system-x86_64 --name "Anaconda" -m 4096 -cpu kvm64 -display none -cdrom test.iso -drive file=disk.qcow2 -serial telnet:localhost:4321,server,nowait &
|
qemu-system-x86_64 --name "Anaconda" -m 4096 -cpu kvm64 -display none -cdrom test.iso -drive file=disk.qcow2 -serial telnet:localhost:4321,server,nowait &
|
||||||
timeout 1m nc localhost 4321
|
timeout 1m bash -c "while ! (echo > /dev/tcp/127.0.0.1/4321); do sleep 0.1; done"
|
||||||
|
nc localhost 4321 > vm.stdout < vm.stdin
|
||||||
|
|
||||||
|
tail -f vm.stdout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue