Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix login issue on Travis-CI FreeBSD build #1145

Merged
merged 1 commit into from
Sep 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .travis/cmake-freebsd-stage1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down