1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

flake8: fix PEP8 overidentation E127

This commit is contained in:
Francisco Molina 2019-11-14 10:57:39 +01:00
parent 8f90da6040
commit 2202b71f99
5 changed files with 15 additions and 15 deletions

View File

@ -274,7 +274,7 @@ class SerCmd(cmd.Cmd):
"""
self.logger.debug("processing line #%s#" % line)
if (line.startswith("/")):
return "PYTERM_" + line[1:]
return "PYTERM_" + line[1:]
return line
def emptyline(self):

View File

@ -65,10 +65,10 @@ def publish(server_dir, server_url, app_ver, latest_name=None):
def wait_for_update(child):
return child.expect([r"riotboot_flashwrite: processing bytes (\d+)-(\d+)",
"riotboot_flashwrite: riotboot flashing "
"completed successfully"],
timeout=UPDATING_TIMEOUT)
return child.expect([r"riotboot_flashwrite: processing bytes (\d+)-(\d+)",
"riotboot_flashwrite: riotboot flashing "
"completed successfully"],
timeout=UPDATING_TIMEOUT)
def get_ipv6_addr(child):

View File

@ -82,7 +82,7 @@ class Board(object):
pass
if (name == "native") and (reset is None):
reset = _reset_native_execute
reset = _reset_native_execute
self.name = name
self.port = port
@ -232,13 +232,13 @@ def test_udpv6_send(board_group, application, env=None):
receiver.sendline(u"udp server start %d" % port)
# wait for neighbor discovery to be done
time.sleep(5)
sender.sendline(u"udp send %s %d ab:cd:ef" % (receiver_ip, port))
sender.expect_exact(u"Success: send 3 byte over UDP to [%s]:%d" %
sender.sendline(u"udp send %s %d ab:cd:ef" % (rerun
sender.expect_exact(u"Success: send 3 byte over run
(receiver_ip, port))
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()
if env is not None:
env_client.update(env)

View File

@ -14,11 +14,11 @@ def testfunc(child):
child.expect_exact("xtimer_periodic_wakeup test application.")
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):
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.")

View File

@ -14,9 +14,9 @@ def testfunc(child):
child.expect_exact("This test tests re-setting of an already active timer.")
child.expect_exact("It should print three times \"now=<value>\", with "
"values approximately 100ms (100000us) apart.")
child.expect(u"now=\d+")
child.expect(u"now=\d+")
child.expect(u"now=\d+")
child.expect(r"now=\d+")
child.expect(r"now=\d+")
child.expect(r"now=\d+")
child.expect_exact("Test completed!")