[CI]: Check rtc metric just on aarch64
import os
import json
+import platform
import host_tools.logging as log_tools
@@ -40,7 +41,6 @@ def test_flush_metrics(test_microvm_with_api):
'net',
'patch_api_requests',
'put_api_requests',
- 'rtc',
'seccomp',
'vcpu',
'vmm',
@@ -49,6 +49,9 @@ def test_flush_metrics(test_microvm_with_api):
'vsock'
]
+ if platform.machine() == "aarch64":
+ exp_keys.append("rtc")
+
assert set(metrics.keys()) == set(exp_keys)
microvm.flush_metrics(metrics_fifo)
