mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Loosen memory check requirements
With slide variations in the kernel the memory size checks can fail so round down the testing numbers to the nearest multiple of 1000 to make the tests more stable. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -232,8 +232,7 @@ mod tests {
|
||||
thread::sleep(std::time::Duration::new(10, 0));
|
||||
|
||||
aver_eq!(tb, get_cpu_count(), 1);
|
||||
aver_eq!(tb, get_total_memory(), 496_400);
|
||||
|
||||
aver!(tb, get_total_memory() > 496_000);
|
||||
aver!(tb, get_entropy() >= 1000);
|
||||
|
||||
ssh_command("sudo reboot");
|
||||
@@ -284,7 +283,7 @@ mod tests {
|
||||
|
||||
thread::sleep(std::time::Duration::new(10, 0));
|
||||
|
||||
aver!(tb, get_total_memory() > 5_063_800);
|
||||
aver!(tb, get_total_memory() > 5_063_000);
|
||||
|
||||
ssh_command("sudo reboot");
|
||||
thread::sleep(std::time::Duration::new(10, 0));
|
||||
|
||||
Reference in New Issue
Block a user