Commit 8367c0bd authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #2025 from ceh/skip-color-test

packer: skip colored ui test if ui doesn't support colors
parents 1442260c bd425db5
......@@ -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" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment