flake8: fix PEP8 overidentation E127
This commit is contained in:
parent
8f90da6040
commit
2202b71f99
2
dist/tools/pyterm/pyterm
vendored
2
dist/tools/pyterm/pyterm
vendored
@ -274,7 +274,7 @@ class SerCmd(cmd.Cmd):
|
|||||||
"""
|
"""
|
||||||
self.logger.debug("processing line #%s#" % line)
|
self.logger.debug("processing line #%s#" % line)
|
||||||
if (line.startswith("/")):
|
if (line.startswith("/")):
|
||||||
return "PYTERM_" + line[1:]
|
return "PYTERM_" + line[1:]
|
||||||
return line
|
return line
|
||||||
|
|
||||||
def emptyline(self):
|
def emptyline(self):
|
||||||
|
|||||||
@ -65,10 +65,10 @@ def publish(server_dir, server_url, app_ver, latest_name=None):
|
|||||||
|
|
||||||
|
|
||||||
def wait_for_update(child):
|
def wait_for_update(child):
|
||||||
return child.expect([r"riotboot_flashwrite: processing bytes (\d+)-(\d+)",
|
return child.expect([r"riotboot_flashwrite: processing bytes (\d+)-(\d+)",
|
||||||
"riotboot_flashwrite: riotboot flashing "
|
"riotboot_flashwrite: riotboot flashing "
|
||||||
"completed successfully"],
|
"completed successfully"],
|
||||||
timeout=UPDATING_TIMEOUT)
|
timeout=UPDATING_TIMEOUT)
|
||||||
|
|
||||||
|
|
||||||
def get_ipv6_addr(child):
|
def get_ipv6_addr(child):
|
||||||
|
|||||||
@ -82,7 +82,7 @@ class Board(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if (name == "native") and (reset is None):
|
if (name == "native") and (reset is None):
|
||||||
reset = _reset_native_execute
|
reset = _reset_native_execute
|
||||||
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self.port = port
|
self.port = port
|
||||||
@ -232,13 +232,13 @@ def test_udpv6_send(board_group, application, env=None):
|
|||||||
receiver.sendline(u"udp server start %d" % port)
|
receiver.sendline(u"udp server start %d" % port)
|
||||||
# wait for neighbor discovery to be done
|
# wait for neighbor discovery to be done
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
sender.sendline(u"udp send %s %d ab:cd:ef" % (receiver_ip, port))
|
sender.sendline(u"udp send %s %d ab:cd:ef" % (rerun
|
||||||
sender.expect_exact(u"Success: send 3 byte over UDP to [%s]:%d" %
|
sender.expect_exact(u"Success: send 3 byte over run
|
||||||
(receiver_ip, port))
|
(receiver_ip, port))
|
||||||
receiver.expect(u"00000000 AB CD EF")
|
receiver.expect(u"00000000 AB CD EF")
|
||||||
|
|
||||||
|
|
||||||
def test_tcpv6_send(board_group, application, env=None):
|
def test_tcpv6_send(board_group, application, env=None):run
|
||||||
env_client = os.environ.copy()
|
env_client = os.environ.copy()
|
||||||
if env is not None:
|
if env is not None:
|
||||||
env_client.update(env)
|
env_client.update(env)
|
||||||
|
|||||||
@ -14,11 +14,11 @@ def testfunc(child):
|
|||||||
child.expect_exact("xtimer_periodic_wakeup test application.")
|
child.expect_exact("xtimer_periodic_wakeup test application.")
|
||||||
|
|
||||||
for i in range(256):
|
for i in range(256):
|
||||||
child.expect(u"Testing interval \d+... \(now=\d+\)")
|
child.expect(r"Testing interval \d+... \(now=\d+\)")
|
||||||
for i in range(256):
|
for i in range(256):
|
||||||
child.expect(u" +\d+ diff=\d+")
|
child.expect(r" +\d+ diff=\d+")
|
||||||
|
|
||||||
child.expect(u"Min/max error: \d+/\d+")
|
child.expect(r"Min/max error: \d+/\d+")
|
||||||
child.expect_exact("Test complete.")
|
child.expect_exact("Test complete.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,9 +14,9 @@ def testfunc(child):
|
|||||||
child.expect_exact("This test tests re-setting of an already active timer.")
|
child.expect_exact("This test tests re-setting of an already active timer.")
|
||||||
child.expect_exact("It should print three times \"now=<value>\", with "
|
child.expect_exact("It should print three times \"now=<value>\", with "
|
||||||
"values approximately 100ms (100000us) apart.")
|
"values approximately 100ms (100000us) apart.")
|
||||||
child.expect(u"now=\d+")
|
child.expect(r"now=\d+")
|
||||||
child.expect(u"now=\d+")
|
child.expect(r"now=\d+")
|
||||||
child.expect(u"now=\d+")
|
child.expect(r"now=\d+")
|
||||||
child.expect_exact("Test completed!")
|
child.expect_exact("Test completed!")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user