From 1a6e8b908b941890955e1b9b2294917487ec500f Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Fri, 31 Aug 2018 23:23:06 -0400 Subject: [PATCH] Fix login issue on Travis-CI FreeBSD build --- .travis/cmake-freebsd-stage1 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis/cmake-freebsd-stage1 b/.travis/cmake-freebsd-stage1 index d77a7a3a66..40fa69fb0d 100755 --- a/.travis/cmake-freebsd-stage1 +++ b/.travis/cmake-freebsd-stage1 @@ -147,15 +147,22 @@ travis_install() { start_vm - # Login as root user + # Log in. + # Although qemu prints "login:" and "Password:" lines, they are not written into the screen's log + # file for some reason (perhaps not enough text to flush the buffer to a file?), so we can't use + # wait_for on them, we just use sleep to add hopefully enough delay. + sleep 5 + # "login:" send_keys 'root ' - wait_for "Password:" + sleep 5 + # "Password:" send_keys ' + ' # Wait for the prompt - wait_for "root@.*:~" + wait_for "root@.* ~" # Update system RUN PAGER=cat ASSUME_ALWAYS_YES=YES freebsd-update --not-running-from-cron fetch