Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Mar 7, 2020
1 parent 2c63afc commit d072985
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis/cmake-freebsd-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN() {
}

start_vm() {
screen -d -m qemu-system-x86_64 -curses -m 2048 -smp $NPROC -net user,hostfwd=tcp::${SSH_PORT}-:22 -net nic "$IMAGE_NAME"
screen -L -d -m qemu-system-x86_64 -curses -m 2048 -smp $NPROC -net user,hostfwd=tcp::${SSH_PORT}-:22 -net nic "$IMAGE_NAME"

# Wait for ssh to start listening on the port
while ! echo exit | nc localhost ${SSH_PORT}; do
Expand All @@ -36,6 +36,7 @@ stop_vm()
# Wait for qemu process to terminate
while pgrep qemu; do
ps auxf
cat screenlog.0
sleep 30
done
}

0 comments on commit d072985

Please sign in to comment.