From 539b400da5a6b410349dd9ed76e60e323f97fe0b Mon Sep 17 00:00:00 2001 From: Milla Valio Date: Thu, 6 Mar 2025 08:45:30 +0200 Subject: [PATCH] Fix memory test Signed-off-by: Milla Valio --- Robot-Framework/resources/ssh_keywords.resource | 6 +++--- Robot-Framework/test-suites/bat-tests/others.robot | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Robot-Framework/resources/ssh_keywords.resource b/Robot-Framework/resources/ssh_keywords.resource index ecc098df..c7c02414 100644 --- a/Robot-Framework/resources/ssh_keywords.resource +++ b/Robot-Framework/resources/ssh_keywords.resource @@ -537,11 +537,11 @@ Check Internal eMMC Size ${size} Get Regexp Matches ${lsblk} (?im)(nvme0n1 .*\\d*:\\d{1}.*\\d{1}\\s)(\\d{1,3}) 2 RETURN ${size}[0] -Check Storagevm Size - [Documentation] Check the size of storagevm +Check Persist Storage Size + [Documentation] Check the size of persistent storage ${storage} Execute Command df -h Log ${storage} - ${size} Get Regexp Matches ${storage} (?im)(storagevm\\s*)(\\d{1,3}G)(\\s*.*\\s)(\\d{1,3})(G\\s) 4 + ${size} Get Regexp Matches ${storage} (?im)(\\d{1,3}G)\(\\s*.*\\s)(\\d{1,3})(G)(\\s*.*\\s)/persist 3 RETURN ${size}[0] Check ssh connection status diff --git a/Robot-Framework/test-suites/bat-tests/others.robot b/Robot-Framework/test-suites/bat-tests/others.robot index 9d3a33ca..89ebc215 100644 --- a/Robot-Framework/test-suites/bat-tests/others.robot +++ b/Robot-Framework/test-suites/bat-tests/others.robot @@ -81,6 +81,6 @@ Check Memory status ... ELSE IF ${eMMC} Check Internal eMMC Size ... ELSE Fail Failure. Something missing? No SSD or eMMC partitions captured! - ${storage} Check Storagevm Size + ${storage} Check Persist Storage Size Should Be True ${memory} > ${storage} > ${100} Should Be True ${${memory}*${0.80}} <= ${storage}