harness: adjusting http tests to a new network stack
authorAdam Turowski <adam.turowski@inf.ethz.ch>
Thu, 6 Jul 2017 12:11:12 +0000 (14:11 +0200)
committerAdam Turowski <adam.turowski@inf.ethz.ch>
Thu, 6 Jul 2017 12:11:12 +0000 (14:11 +0200)
Signed-off-by: Adam Turowski <adam.turowski@inf.ethz.ch>

lib/net/netif.c
tools/harness/tests/webserver.py

index 565756b..08c95d6 100644 (file)
@@ -94,11 +94,11 @@ static err_t net_if_linkoutput(struct netif *netif, struct pbuf *p)
 static void net_if_status_cb(struct netif *netif)
 {
     if (!ip_addr_cmp(&netif->ip_addr, IP_ADDR_ANY)) {
-        debug_printf("######################################\n");
-        debug_printf("# IP Addr %s\n", ip4addr_ntoa(netif_ip4_addr(netif)));
-        debug_printf("# GW Addr %s\n", ip4addr_ntoa(netif_ip4_gw(netif)));
-        debug_printf("# Netmask %s\n", ip4addr_ntoa(netif_ip4_netmask(netif)));
-        debug_printf("######################################\n");
+        printf("######################################\n");
+        printf("# IP Addr %s\n", ip4addr_ntoa(netif_ip4_addr(netif)));
+        printf("# GW Addr %s\n", ip4addr_ntoa(netif_ip4_gw(netif)));
+        printf("# Netmask %s\n", ip4addr_ntoa(netif_ip4_netmask(netif)));
+        printf("######################################\n");
 
         netif_set_default(netif);
         printf("setting default interface\n");
index 74144bb..45662b0 100644 (file)
@@ -64,7 +64,7 @@ class WebCommon(TestCommon):
         return modules
 
     def process_line(self, line):
-        m = re.match(r'Interface up! IP address (\d+\.\d+\.\d+\.\d+)', line)
+        m = re.match(r'# IP Addr (\d+\.\d+\.\d+\.\d+)', line)
         if m:
             self.ip = m.group(1)
         elif self.ip and 'Starting webserver' in line: