TSCH: Fix incorrect test criteria for regression-tests
The tests are recognized as success when a return value by rpl_ns_num_nodes(), the number of entries in the nodelist, tells all the routes for the nodes in the network are installed. There are eight nodes in addition to one root node. Therefore, the value for test success should not be eight but nine since we have to take into account an nodelist entry for the root.
This commit is contained in:
parent
ac937eda24
commit
651147df57
|
@ -274,9 +274,9 @@ make node.cooja TARGET=cooja MAKE_WITH_ORCHESTRA=0 MAKE_WITH_SECURITY=0</command
|
|||
<script>TIMEOUT(300000); /* Time out after 5 minutes */
|
||||

|
||||
/* Wait until a node (can only be the DAGRoot) has
|
||||
* 8 routing entries (i.e. can reach every node) */
|
||||
* 9 routing entries including one for the root (i.e. can reach every node) */
|
||||
log.log("Waiting for routing tables to fill\n");
|
||||
WAIT_UNTIL(msg.endsWith("Routing links (8 in total):"));
|
||||
WAIT_UNTIL(msg.endsWith("Routing links (9 in total):"));
|
||||
log.log("Root routing table ready\n");
|
||||

|
||||
log.testOK(); /* Report test success and quit */</script>
|
||||
|
|
|
@ -281,9 +281,9 @@ WAIT_UNTIL(msg.startsWith("Orchestra:"));
|
|||
log.log("Orchestra started\n");
|
||||

|
||||
/* Wait until a node (can only be the DAGRoot) has
|
||||
* 8 routing entries (i.e. can reach every node) */
|
||||
* 9 routing entries including one for the root (i.e. can reach every node) */
|
||||
log.log("Waiting for routing tables to fill\n");
|
||||
WAIT_UNTIL(msg.endsWith("Routing links (8 in total):"));
|
||||
WAIT_UNTIL(msg.endsWith("Routing links (9 in total):"));
|
||||
log.log("Root routing table ready\n");
|
||||

|
||||
log.testOK(); /* Report test success and quit */</script>
|
||||
|
|
|
@ -276,9 +276,9 @@ make node.cooja TARGET=cooja MAKE_WITH_ORCHESTRA=0 MAKE_WITH_SECURITY=1</command
|
|||
log.log("Waiting for association with security\n");
|
||||

|
||||
/* Wait until a node (can only be the DAGRoot) has
|
||||
* 8 routing entries (i.e. can reach every node) */
|
||||
* 9 routing entries including one for the root (i.e. can reach every node) */
|
||||
log.log("Waiting for routing tables to fill\n");
|
||||
WAIT_UNTIL(msg.endsWith("Routing links (8 in total):"));
|
||||
WAIT_UNTIL(msg.endsWith("Routing links (9 in total):"));
|
||||
log.log("Root routing table ready\n");
|
||||

|
||||
log.testOK(); /* Report test success and quit */</script>
|
||||
|
|
Loading…
Reference in a new issue