From 91235785e06ac890514fd51fa44aa14e7c2e108e Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 2 Mar 2023 08:19:41 -0500 Subject: network testing --- test/network/net_mac.exp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/network/net_mac.exp') diff --git a/test/network/net_mac.exp b/test/network/net_mac.exp index 086efd02c..481e452af 100755 --- a/test/network/net_mac.exp +++ b/test/network/net_mac.exp @@ -8,7 +8,7 @@ spawn $env(SHELL) match_max 100000 # check ip address -send -- "firejail --net=br0 --ip=10.10.20.5 --mac=00:11:22:33:44:55\r" +send -- "firejail --net=br0 --ip=10.10.20.5 --mac=00:11:22:33:44:55 cat /proc/1/net/dev\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "eth0" @@ -23,7 +23,7 @@ expect { } expect { timeout {puts "TESTING ERROR 2\n";exit} - "255.255.255.248" + "255.255.255.0" } expect { timeout {puts "TESTING ERROR 3\n";exit} @@ -33,7 +33,6 @@ expect { timeout {puts "TESTING ERROR 4\n";exit} -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" } -send -- "exit\r" after 100 puts "\nall done\n" -- cgit v1.2.3-70-g09d2