Lines Matching +full:- +full:s
49 LOGX = re.compile(r'.*Under-voltage detected!')
52 assert LOGX.match('[57522.618196] Under-voltage detected! (0x00050005)')
54 OTBR_AGENT_SYSLOG_PATTERN = re.compile(r'raspberrypi otbr-agent\[\d+\]: (.*)')
56 …'Jun 23 05:21:22 raspberrypi otbr-agent[323]: =========[[THCI] direction=send | type=JOIN_FIN.req …
110 if i < retry - 1:
120 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
173 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
204 raise Exception('%s: failed to find end of response' % self.port)
216 print('[%s] Got line [%r]' % (self.port, line))
224 print('[%s] Expected [%r]' % (self.port, expected))
230 raise Exception('failed to find expected string[%s]' % expected)
274 logging.info('LOG: %s', line)
328 self.bash('ip -6 addr del 910b::1 dev %s || true' % self.backboneNetif)
329 self.bash('ip -6 addr del fd00:7d03:7d03:7d03::1 dev %s || true' % self.backboneNetif)
342 self.bash('sysctl net.ipv6.conf.%s.accept_ra=2' % self.backboneNetif)
355 cmd = 'nohup ~/repo/openthread/tests/scripts/thread-cert/mcast6.py wpan0 %s' % sAddr
363 self.bash('ip -6 addr add 910b::1 dev %s' % self.backboneNetif)
366 self.bash('ip -6 addr add fd00:7d03:7d03:7d03::1 dev %s' % self.backboneNetif)
374 string (str): UTF-8 input string.
402 … 'Available interface options: 0 - Thread; 1 - Ethernet'.format(interface))
403 cmd = '/home/pi/reference-device/send_udp.py %s %s %s %s' % (ifname, dst, port, payload)
411 cmd = '/home/pi/reference-device/send_mld_query.py %s %s' % (ifname, dst)
417 cmd1 = 'sudo ip -6 neigh flush nud all nud failed nud noarp dev %s' % self.backboneNetif
418 cmd2 = ('sudo ip -6 neigh list nud all dev %s '
419 '| cut -d " " -f1 '
420 … '| sudo xargs -I{} ip -6 neigh delete {} dev %s') % (self.backboneNetif, self.backboneNetif)
421 cmd = '%s ; %s' % (cmd1, cmd2)
426 cmd1 = 'sudo ip -6 neigh delete %s dev %s' % (addr, self.backboneNetif)
427 … cmd2 = 'sudo ip -6 neigh add %s dev %s lladdr %s nud %s' % (addr, self.backboneNetif, lladdr, nud)
428 cmd = '%s ; %s' % (cmd1, cmd2)
433 cmd = "ip -6 addr list dev %s | grep 'inet6 fe80' | awk '{print $2}'" % self.backboneNetif
456 cmd = 'ping -6 -I %s %s -c 1 -s %d -W %d -t %d' % (
482 cmd = 'ping -6 -I %s %s -c 1 -s %d -t %d' % (ifName, destination, str(length), hop_limit)
508 cmd = 'ip -6 addr list dev %s | grep inet6' % self.backboneNetif
527 if filterByPrefix[-2:] != '::':
528 filterByPrefix = '%s::' % filterByPrefix
536 # read commissioning log if it's commissioning
549 …return self.bash('ip addr list dev %s | grep ether' % self.backboneNetif, sudo=False)[0].strip().s…
554 self.__syslog_skip_lines = int(self.bash('wc -l /var/log/syslog', sudo=False)[0].split()[0])
567 conf += "\ninterface %s" % self.backboneNetif
591 cmd = 'sh -c "cat >/etc/radvd.conf <<%s"' % conf
594 self.bash(self.extraParams.get('cmd-restart-radvd', 'service radvd restart'))
624 cmd = 'ot-ctl -- %s' % line
632 restart_cmd = self.extraParams.get('cmd-restart-otbr-agent', 'systemctl restart otbr-agent')
636 self.bash('truncate -s 0 /var/log/syslog')
639 cmd = self.extraParams.get('cmd-dump-otbr-log', 'grep "otbr-agent" /var/log/syslog')
642 self.log('%s', line)
646 cmd = "ip -6 addr list dev %s | grep 'inet6 ' | awk '{print $2}'" % self.backboneNetif
654 self.bash('ip6tables -A INPUT -p udp --dport 5353 -s %s -j DROP' % deny_addr)
658 self.bash('ip6tables -A INPUT -p udp --dport 5353 -s %s -j ACCEPT' % allow_addr)
660 self.bash('ip6tables -A INPUT -p udp --dport 5353 -j DROP')
665 self.bash('ip6tables -F INPUT')
669 # For BBR-TC-03 or DH test cases (empty arguments) just send a query
670 … output = self.bash('python3 ~/repo/openthread/tests/scripts/thread-cert/find_border_agents.py')
675 # For MATN-TC-17 and MATN-TC-18 use Zeroconf to get the BBR address and border agent port
681 addr = '%s%%%s' % (addr, self.backboneNetif)
691 stop_cmd = self.extraParams.get('cmd-stop-otbr-agent', 'systemctl stop otbr-agent')
698 start_cmd = self.extraParams.get('cmd-start-otbr-agent', 'systemctl start otbr-agent')
705 self.bash('ip -6 addr add %s/64 dev wpan0' % slaacAddress)
717 cmd = 'pkill -f mcast6.*%s' % sAddr
750 for i in range((MAX_TIMEOUT - MIN_TIMEOUT) // CHECK_INTERVAL):