performance-metrics: disable net latency test on AArch64

As ethr is not stable on AArch64, disable it until we find other tool.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
Henry Wang 2022-03-18 05:47:30 -04:00 committed by Xin Wang
parent 1b494fb061
commit 8dda052c7d

View File

@ -447,8 +447,16 @@ fn main() {
)
.get_matches();
// It seems that the tool (ethr) used for testing the virtio-net latency
// is not stable on AArch64, and therefore the latency test is currently
// skipped on AArch64.
let test_list: Vec<&PerformanceTest> = TEST_LIST
.iter()
.filter(|t| !(cfg!(target_arch = "aarch64") && t.name == "virtio_net_latency_us"))
.collect();
if cmd_arguments.is_present("list-tests") {
for test in TEST_LIST.iter() {
for test in test_list.iter() {
println!("\"{}\" ({})", test.name, test.control);
}
@ -465,7 +473,7 @@ fn main() {
init_tests();
for test in TEST_LIST.iter() {
for test in test_list.iter() {
if test_filter.is_empty() || test_filter.iter().any(|&s| test.name.contains(s)) {
match run_test_with_timeout(test) {
Ok(r) => {