tests: performance-metrics: Add timeout parameter as runtime argument

This commit will add timeout parameter to performance metrics
testcases as runtime argument. Testcases are facing the timeout
sometimes when we run with MSHV hypervisor. This change will
provide mechanism to pass the timeout as per the need while
running the testcases. If nothing is passed, default timeout or
timeout set as per the testcase will be followed.

Signed-off-by: smit-gardhariya <gardhariya.smit@gmail.com>
This commit is contained in:
smit-gardhariya
2023-03-13 13:32:15 +05:30
committed by Bo Chen
parent 4c4f79c831
commit 7e47464a48
2 changed files with 25 additions and 6 deletions

View File

@@ -1352,6 +1352,7 @@ pub fn parse_iperf3_output(output: &[u8], sender: bool, bandwidth: bool) -> Resu
})
}
#[derive(Clone)]
pub enum FioOps {
Read,
RandomRead,