diff --git a/packer/ui_test.go b/packer/ui_test.go index 08dd530a5..a42cd3033 100644 --- a/packer/ui_test.go +++ b/packer/ui_test.go @@ -35,6 +35,10 @@ func TestColoredUi(t *testing.T) { bufferUi := testUi() ui := &ColoredUi{UiColorYellow, UiColorRed, bufferUi} + if !ui.supportsColors() { + t.Skip("skipping for ui without color support") + } + ui.Say("foo") result := readWriter(bufferUi) if result != "\033[1;33mfoo\033[0m\n" {