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:
Rob Bradford 2019-06-10 15:00:14 +01:00
parent 52ce042125
commit a45f473683

View File

@ -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));