diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2018-08-31 23:23:06 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2018-09-01 06:35:17 -0400 |
commit | 1a6e8b908b941890955e1b9b2294917487ec500f (patch) | |
tree | c1e72416304c1f7ae05f20a9dacbcd9b052c5cfb /.travis | |
parent | 9764285ab156c25050b9e9e46a8e8bc0be701951 (diff) |
Fix login issue on Travis-CI FreeBSD build
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/cmake-freebsd-stage1 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.travis/cmake-freebsd-stage1 b/.travis/cmake-freebsd-stage1 index d77a7a3a..40fa69fb 100755 --- a/.travis/cmake-freebsd-stage1 +++ b/.travis/cmake-freebsd-stage1 | |||
@@ -147,15 +147,22 @@ travis_install() { | |||
147 | 147 | ||
148 | start_vm | 148 | start_vm |
149 | 149 | ||
150 | # Login as root user | 150 | # Log in. |
151 | # Although qemu prints "login:" and "Password:" lines, they are not written into the screen's log | ||
152 | # file for some reason (perhaps not enough text to flush the buffer to a file?), so we can't use | ||
153 | # wait_for on them, we just use sleep to add hopefully enough delay. | ||
154 | sleep 5 | ||
155 | # "login:" | ||
151 | send_keys 'root | 156 | send_keys 'root |
152 | 157 | ||
153 | ' | 158 | ' |
154 | wait_for "Password:" | 159 | sleep 5 |
160 | # "Password:" | ||
155 | send_keys ' | 161 | send_keys ' |
162 | |||
156 | ' | 163 | ' |
157 | # Wait for the prompt | 164 | # Wait for the prompt |
158 | wait_for "root@.*:~" | 165 | wait_for "root@.* ~" |
159 | 166 | ||
160 | # Update system | 167 | # Update system |
161 | RUN PAGER=cat ASSUME_ALWAYS_YES=YES freebsd-update --not-running-from-cron fetch | 168 | RUN PAGER=cat ASSUME_ALWAYS_YES=YES freebsd-update --not-running-from-cron fetch |