mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +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:
parent
52ce042125
commit
a45f473683
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user