summaryrefslogtreecommitdiff
path: root/test_util
diff options
context:
space:
mode:
Diffstat (limited to 'test_util')
-rw-r--r--test_util/Cargo.toml1
-rw-r--r--test_util/src/lib.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/test_util/Cargo.toml b/test_util/Cargo.toml
index e41f9a01d..1613d175b 100644
--- a/test_util/Cargo.toml
+++ b/test_util/Cargo.toml
@@ -19,6 +19,7 @@ hyper = { version = "0.14.2", features = ["server", "http1", "runtime"] }
lazy_static = "1.4.0"
os_pipe = "0.9.2"
regex = "1.4.3"
+serde = { version = "1.0.116", features = ["derive"] }
tempfile = "3.1.0"
tokio = { version = "1.0.1", features = ["full"] }
tokio-rustls = "0.22.0"
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 9e9a9c971..53dc82c39 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -21,6 +21,7 @@ use os_pipe::pipe;
#[cfg(unix)]
pub use pty;
use regex::Regex;
+use serde::Serialize;
use std::collections::HashMap;
use std::convert::Infallible;
use std::env;
@@ -1366,7 +1367,7 @@ pub fn parse_wrk_output(output: &str) -> WrkOutput {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone, Serialize)]
pub struct StraceOutput {
pub percent_time: f64,
pub seconds: f64,