1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-08-20 05:21:43 +02:00

flashrom_tester: Remove --output log redirect option

Always print logs to stdout. User can redirect logs in the normal way if
they wish.

BUG=b:194245688
BRANCH=None
TEST=clippy, unit

Change-Id: I5eab8169644a16ba31b203e8607853c459f92978
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/71773
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Evan Benn
2023-01-10 16:53:28 +11:00
committed by Edward O'Callaghan
parent 06bcc26b1d
commit eab04615ee
4 changed files with 29 additions and 66 deletions

View File

@@ -41,7 +41,6 @@ mod logger;
use clap::{App, Arg};
use flashrom::{FlashChip, Flashrom, FlashromCmd, FlashromLib};
use flashrom_tester::{tester, tests};
use std::path::PathBuf;
use std::sync::atomic::AtomicBool;
pub mod built_info {
@@ -91,13 +90,6 @@ fn main() {
.long("print-layout")
.help("Print the layout file's contents before running tests"),
)
.arg(
Arg::with_name("log-file")
.short("o")
.long("log-file")
.takes_value(true)
.help("Write logs to a file rather than stdout"),
)
.arg(
Arg::with_name("log_debug")
.short("d")
@@ -121,10 +113,7 @@ fn main() {
)
.get_matches();
logger::init(
matches.value_of_os("log-file").map(PathBuf::from),
matches.is_present("log_debug"),
);
logger::init(matches.is_present("log_debug"));
debug!("Args parsed and logging initialized OK");
debug!("Collecting crossystem info");