From bc205aac1ca1a70fcc6a3ad3fe2b8db684fce5a1 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 11 Apr 2016 09:03:16 +0000 Subject: experimental UI: only wrap lines if curses are used Lines are wrapped in the progress bar to reliably know how many lines we'll eventually have to erase (there are a couple of reasons for this; for example, the information about the terminal width often is unreliable). So, if we don't erase lines anyway, we can as well let the terminal break lines. -- Change-Id: Id20806e6d53bfeccc781200eeac96acf48a74b1d Reviewed-on: https://bazel-review.googlesource.com/#/c/3292 MOS_MIGRATED_REVID=119510906 --- src/test/shell/integration/experimental_ui_test.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test/shell/integration/experimental_ui_test.sh') diff --git a/src/test/shell/integration/experimental_ui_test.sh b/src/test/shell/integration/experimental_ui_test.sh index df8e6c84c1..e411b53904 100755 --- a/src/test/shell/integration/experimental_ui_test.sh +++ b/src/test/shell/integration/experimental_ui_test.sh @@ -80,6 +80,13 @@ function test_basic_progress_no_curses() { expect_log $'\x1b\[32m' } +function test_no_curses_no_linebreak() { + bazel test --experimental_ui --curses=no --color=yes --terminal_columns=9 \ + pkg:true 2>$TEST_log || fail "bazel test failed" + # expect a long-ish status line + expect_log '\[[0-9,]* / [0-9,]*\]......' +} + function test_pass() { bazel test --experimental_ui --curses=yes --color=yes pkg:true >$TEST_log || fail "bazel test failed" # PASS is written in green on the same line as the test target -- cgit v1.2.3