Print stats even when test fails
This commit is contained in:
parent
01683428ea
commit
78fd88d0ec
|
@ -350,11 +350,12 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
se.sics.cooja.plugins.ScriptRunner
|
se.sics.cooja.plugins.ScriptRunner
|
||||||
<plugin_config>
|
<plugin_config>
|
||||||
<script>TIMEOUT(500000, log.log("Timeout\n"));
|
<script>TIMEOUT(500000, print_stats());
|
||||||
|
|
||||||
function
|
function
|
||||||
print_stats()
|
print_stats()
|
||||||
{
|
{
|
||||||
|
log.log("Time " + time + "\n");
|
||||||
log.log("Received " + total_received + " messages, " +
|
log.log("Received " + total_received + " messages, " +
|
||||||
(total_received / nrNodes) + " messages/node, " +
|
(total_received / nrNodes) + " messages/node, " +
|
||||||
total_lost + " lost, " +
|
total_lost + " lost, " +
|
||||||
|
|
Loading…
Reference in a new issue