Print stats even when test fails

This commit is contained in:
adamdunkels 2009-11-03 09:27:11 +00:00
parent 01683428ea
commit 78fd88d0ec

View file

@ -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, " +