From 8fd0ce63755998a95f2846a051cb6bcc64b32c06 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Sat, 7 Apr 2018 14:28:33 +0200 Subject: [PATCH] Fix network usage tracking un global results --- package_check.sh | 19 +++++++++++++++++++ sub_scripts/testing_process.sh | 11 +++++++++++ 2 files changed, 30 insertions(+) diff --git a/package_check.sh b/package_check.sh index bf9ec7b..7c54a75 100755 --- a/package_check.sh +++ b/package_check.sh @@ -777,6 +777,16 @@ start_timer # And keep this value separately complete_start_timer=$starttime +#================================================= +# Set the network followup for all tests +#================================================= + +# Start the network usage followup +start_network_usage +# And keep these values separately +complete_start_rx_usage=$start_rx_usage +complete_start_tx_usage=$start_tx_usage + #================================================= # Initialize tests #================================================= @@ -1211,6 +1221,15 @@ echo "You can find the complete log of these tests in $complete_log" starttime=$complete_start_timer # End the timer for the test stop_timer 3 + +#================================================= +# Ending the network usage followup +#================================================= + +# Restore the orgin values +start_rx_usage=$complete_start_rx_usage +start_tx_usage=$complete_start_tx_usage +# End the followup stop_network_usage 3 #================================================= diff --git a/sub_scripts/testing_process.sh b/sub_scripts/testing_process.sh index 82c72f8..3ee5a7e 100644 --- a/sub_scripts/testing_process.sh +++ b/sub_scripts/testing_process.sh @@ -1418,6 +1418,12 @@ TEST_LAUNCHER () { # And keep this value separately local global_start_timer=$starttime + # Start the network usage followup + start_network_usage + # And keep these values separately + local complete_start_rx_usage=$start_rx_usage + local complete_start_tx_usage=$start_tx_usage + # Execute the test $1 $2 @@ -1431,6 +1437,11 @@ TEST_LAUNCHER () { starttime=$global_start_timer # End the timer for the test stop_timer 2 + + # Restore the orgin values + start_rx_usage=$complete_start_rx_usage + start_tx_usage=$complete_start_tx_usage + # End the followup stop_network_usage 2 # Update the lock file with the date of the last finished test.