From 4df64d93a063ddbfbf9d05f7059fe8386385132a Mon Sep 17 00:00:00 2001 From: Evan Benn Date: Mon, 7 Nov 2022 16:48:14 +1100 Subject: flashrom_tester: Only print color when stdout isatty Add the atty crate as a dependency. Print log and report in color only when isatty is true. BUG=b:246250254 BRANCH=None TEST=ssh dut flashrom_tester # no color TEST=ssh -t dut flashrom_tester # color Change-Id: Ia3cc527fb98e53eda6773622340cf10764df2cba Signed-off-by: Evan Benn Reviewed-on: https://review.coreboot.org/c/flashrom/+/69270 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Edward O'Callaghan --- util/flashrom_tester/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'util/flashrom_tester/Cargo.toml') diff --git a/util/flashrom_tester/Cargo.toml b/util/flashrom_tester/Cargo.toml index b57f04e5..a7b68813 100644 --- a/util/flashrom_tester/Cargo.toml +++ b/util/flashrom_tester/Cargo.toml @@ -14,6 +14,7 @@ name = "flashrom_tester" required-features = ["cli"] [dependencies] +atty = "0.2" built = { version = "0.5", features = ["chrono"] } chrono = { version = "0.4", optional = true } clap = { version = "2.33", default-features = false, optional = true } -- cgit v1.2.3