more fixes for test framework

This commit is contained in:
hardy
2021-10-11 23:12:30 +02:00
parent 6c64382d60
commit f9d5a87570
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -487,9 +487,9 @@ class RANManagement():
monitor_file='stats_monitor.py'
if self.eNB_Stats=='yes':
if (self.air_interface[self.eNB_instance] == 'lte-softmodem') or (self.air_interface[self.eNB_instance] == 'ocp-enb'):
mySSH.command('echo $USER; nohup python3 ../ci-scripts/' + monitor_file + ' \'enb\' 2>&1 > enb_stats_monitor_execution.log &', '\$', 5)
mySSH.command('echo $USER; nohup python3 ../ci-scripts/' + monitor_file + ' enb 2>&1 > enb_stats_monitor_execution.log &', '\$', 5)
else:
mySSH.command('echo $USER; nohup python3 ../ci-scripts/' + monitor_file + ' \'gnb\' 2>&1 > gnb_stats_monitor_execution.log &', '\$', 5)
mySSH.command('echo $USER; nohup python3 ../ci-scripts/' + monitor_file + ' gnb 2>&1 > gnb_stats_monitor_execution.log &', '\$', 5)
+2 -2
View File
@@ -64,7 +64,7 @@ def graph(d, node_type):
plt.tight_layout()
# Combine all the operations and display
plt.savefig('/tmp/'+node_type+'_stats_monitor.png')
plt.savefig(node_type+'_stats_monitor.png')
plt.show()
if __name__ == "__main__":
@@ -87,7 +87,7 @@ if __name__ == "__main__":
output = process.stdout.readlines()
time.sleep(1)
print('process stopped')
with open('/tmp/'+node_type+'_stats_monitor.pickle', 'wb') as handle:
with open(node_type+'_stats_monitor.pickle', 'wb') as handle:
pickle.dump(d, handle, protocol=pickle.HIGHEST_PROTOCOL)
graph(d, node_type)
+2 -2
View File
@@ -122,8 +122,8 @@
<testCase id="070001">
<class>Iperf</class>
<desc>iperf (UL/3Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 3M -t 60</iperf_args>
<desc>iperf (UL/1Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 1M -t 60</iperf_args>
<direction>UL</direction>
<id>nrmodule2_quectel</id>
<iperf_packetloss_threshold>5</iperf_packetloss_threshold>