Skip to content

Commit

Permalink
Fix sysbench test in NetVM
Browse files Browse the repository at this point in the history
Correct wrong variable name.
Set target specific thresholds for NUC.

Add also minor correction to keyword:
Check that time is correct

Signed-off-by: Samuli Leivo <samuli.leivo@unikie.com>
  • Loading branch information
leivos-unikie committed Nov 7, 2024
1 parent 33145f4 commit e26e3ac
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
15 changes: 12 additions & 3 deletions Robot-Framework/lib/PerformanceDataProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ def read_cpu_csv_and_plot(self, test_name):

# Set threshold for fail depending on test type: single/multi thread
if "One thread" in test_name or "1thread" in test_name:
threshold = thresholds['cpu']['single']
if "NUC" in self.device:
threshold = thresholds['cpu']['single_nuc']
else:
threshold = thresholds['cpu']['single']
else:
threshold = thresholds['cpu']['multi']

Expand Down Expand Up @@ -453,9 +456,15 @@ def read_mem_csv_and_plot(self, test_name):
# Set threshold for fail depending on test type: single/multi thread, write/read
if "One thread" in test_name or "1thread" in test_name:
if "rite" in test_name:
threshold = thresholds['mem']['single']['wr']
if "NUC" in self.device:
threshold = thresholds['mem']['single']['wr_nuc']
else:
threshold = thresholds['mem']['single']['wr']
else:
threshold = thresholds['mem']['single']['rd']
if "NUC" in self.device:
threshold = thresholds['mem']['single']['rd_nuc']
else:
threshold = thresholds['mem']['single']['rd']
else:
if "rite" in test_name:
threshold = thresholds['mem']['multi']['wr']
Expand Down
7 changes: 5 additions & 2 deletions Robot-Framework/lib/performance_thresholds.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
thresholds = {
'cpu': {
'multi': 700,
'single': 40
'single': 40,
'single_nuc': 120
},
'mem': {
'multi': {
Expand All @@ -13,7 +14,9 @@
},
'single': {
'wr': 350,
'rd': 250
'rd': 250,
'wr_nuc': 800,
'rd_nuc': 800
}
},
'fileio': {
Expand Down
2 changes: 1 addition & 1 deletion Robot-Framework/test-suites/bat-tests/timesync.robot
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Check that time is correct
[Documentation] Check that current system time is correct (time tolerance = 10 sec)
[Arguments] ${timezone}=UTC

${is_started} = Set Variable False
${is_synchronized} = Set Variable False
FOR ${i} IN RANGE 3
${output} Execute Command timedatectl -a
${local_time} ${universal_time} ${rtc_time} ${device_time_zone} ${is_synchronized} Parse time info ${output}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Sysbench test in NetVM
END
IF "${statistics_mem_wr}[flag]" == "-1"
${add_msg} Create fail message ${statistics_mem_wr}
${fail_msg}= Set Variable ${fail_msg}\nMEM WRITE:\n${add_msg}
${fail_msg}= Set Variable ${msg}\nMEM WRITE:\n${add_msg}
END
IF "${statistics_mem_wr}[flag]" == "1"
${add_msg} Create improved message ${statistics_mem_wr}
Expand Down

0 comments on commit e26e3ac

Please sign in to comment.