From 1dcd1e955ddae21d1cdb0c14564e2de74c1ae22f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 29 Sep 2023 19:16:47 +0530 Subject: [PATCH] feat: print validator config after successful run --- src/complaince/result.rs | 3 --- src/complaince/validator.rs | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/complaince/result.rs b/src/complaince/result.rs index fb8b8a5..731c2a7 100644 --- a/src/complaince/result.rs +++ b/src/complaince/result.rs @@ -4,11 +4,8 @@ use serde::{Deserialize, Serialize}; -use super::suite::Test; - #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] pub struct Result { - pub test: Test, pub success: bool, // sent by the app pub logs: String, diff --git a/src/complaince/validator.rs b/src/complaince/validator.rs index 771f29e..3e1a1df 100644 --- a/src/complaince/validator.rs +++ b/src/complaince/validator.rs @@ -9,5 +9,6 @@ mod target; fn main() { let s = fs::read_to_string("../ftest-control/targets/forgejo/ftest.toml").unwrap(); - let _target: target::Target = toml::from_str(&s).unwrap(); + let target: target::Target = toml::from_str(&s).unwrap(); + println!("{:#?}", target); }