Create the test function

This commit is contained in:
Mubelotix
2025-08-25 11:37:23 +02:00
parent d9177d4727
commit 78e98a4e6c
5 changed files with 31 additions and 19 deletions

View File

@ -1,6 +1,6 @@
use clap::Parser;
use crate::common::args::CommonArgs;
use crate::common::{args::CommonArgs, logs::setup_logs};
/// Run tests from a workload
#[derive(Parser, Debug)]
@ -9,3 +9,9 @@ pub struct TestDeriveArgs {
#[command(flatten)]
common: CommonArgs,
}
pub fn run(args: TestDeriveArgs) -> anyhow::Result<()> {
setup_logs(&args.common.log_filter)?;
Ok(())
}