tests: Enable watchdog test case on AArch64

Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
Michael Zhao 2020-10-29 23:33:15 +08:00 committed by Rob Bradford
parent 52f60188ca
commit 164d481683

View File

@ -5459,7 +5459,6 @@ mod tests {
}
#[test]
#[cfg(target_arch = "x86_64")]
fn test_watchdog() {
let mut focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
let guest = Guest::new(&mut focal);
@ -5550,6 +5549,8 @@ mod tests {
.unwrap_or_default();
assert_eq!(boot_count, 3);
#[cfg(target_arch = "x86_64")]
{
// Now pause the VM and remain offline for 30s
assert!(remote_command(&api_socket, "pause", None));
thread::sleep(std::time::Duration::new(30, 0));
@ -5563,6 +5564,7 @@ mod tests {
.parse::<u32>()
.unwrap_or_default();
assert_eq!(boot_count, 3);
}
});
let _ = child.kill();