Commit d69960de authored by hardy's avatar hardy

more fixes for test framework

parent 719b3606
...@@ -487,9 +487,9 @@ class RANManagement(): ...@@ -487,9 +487,9 @@ class RANManagement():
monitor_file='stats_monitor.py' monitor_file='stats_monitor.py'
if self.eNB_Stats=='yes': if self.eNB_Stats=='yes':
if (self.air_interface[self.eNB_instance] == 'lte-softmodem') or (self.air_interface[self.eNB_instance] == 'ocp-enb'): 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: 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)
......
...@@ -64,7 +64,7 @@ def graph(d, node_type): ...@@ -64,7 +64,7 @@ def graph(d, node_type):
plt.tight_layout() plt.tight_layout()
# Combine all the operations and display # Combine all the operations and display
plt.savefig('/tmp/'+node_type+'_stats_monitor.png') plt.savefig(node_type+'_stats_monitor.png')
plt.show() plt.show()
if __name__ == "__main__": if __name__ == "__main__":
...@@ -87,7 +87,7 @@ if __name__ == "__main__": ...@@ -87,7 +87,7 @@ if __name__ == "__main__":
output = process.stdout.readlines() output = process.stdout.readlines()
time.sleep(1) time.sleep(1)
print('process stopped') 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) pickle.dump(d, handle, protocol=pickle.HIGHEST_PROTOCOL)
graph(d, node_type) graph(d, node_type)
......
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
<testCase id="070001"> <testCase id="070001">
<class>Iperf</class> <class>Iperf</class>
<desc>iperf (UL/3Mbps/UDP)(60 sec)(single-ue profile)</desc> <desc>iperf (UL/1Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 3M -t 60</iperf_args> <iperf_args>-u -b 1M -t 60</iperf_args>
<direction>UL</direction> <direction>UL</direction>
<id>nrmodule2_quectel</id> <id>nrmodule2_quectel</id>
<iperf_packetloss_threshold>5</iperf_packetloss_threshold> <iperf_packetloss_threshold>5</iperf_packetloss_threshold>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment