tests: fix python style E305
expected 2 blank lines after class or function definition, found 1
This commit is contained in:
parent
01a82c870e
commit
d3015f0a57
@ -20,5 +20,6 @@ def testfunc(child):
|
||||
child.expect('\+ bitarithm_bits_set: \d+ iterations per second')
|
||||
child.expect_exact("Done.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=30))
|
||||
|
||||
@ -23,5 +23,6 @@ def testfunc(child):
|
||||
child.expect(".+ false positive rate.")
|
||||
child.expect_exact("All done!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -23,5 +23,6 @@ def testfunc(child):
|
||||
if index == 1:
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -51,5 +51,6 @@ def testfunc(child):
|
||||
|
||||
print("All tests successful")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, echo=False))
|
||||
|
||||
@ -27,5 +27,6 @@ def testfunc(child):
|
||||
child.expect_exact("Bye, bye.")
|
||||
child.expect_exact("******************************************************")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -23,5 +23,6 @@ def testfunc(child):
|
||||
child.expect_exact("Bye, bye.")
|
||||
child.expect_exact("*****************************************")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -35,5 +35,6 @@ def testfunc(child):
|
||||
child.expect_exact("Bye, bye.")
|
||||
child.expect_exact("******************************************")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect([r"OK \([0-9]+ tests\)",
|
||||
r"error: unable to initialize RTC \[I2C initialization error\]"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect_exact(u"[SUCCESS]", timeout=60)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -18,5 +18,6 @@ def testfunc(child):
|
||||
child.expect_exact("[START]")
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect_exact("[SUCCESS]", timeout=60)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect_exact(u"[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -31,5 +31,6 @@ def testfunc(child):
|
||||
print("")
|
||||
print("All tests successful")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, echo=False))
|
||||
|
||||
@ -25,5 +25,6 @@ def testfunc(child):
|
||||
print("Stopped after %i iterations, but should run forever." % how_many)
|
||||
print("=> All tests successful")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, echo=False))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect_exact("Testing floating point arithmetics...")
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -11,5 +11,6 @@ def testfunc(child):
|
||||
child.expect_exact('If you can read this:')
|
||||
child.expect_exact('Test successful.')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -40,5 +40,6 @@ def testfunc(child):
|
||||
child.expect_exact("ipv6: forward nh = 17 to other threads")
|
||||
child.expect_exact("pkt->users: 0")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect(r"OK \(\d+ tests\)")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=1))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect(r"OK \(\d+ tests\)")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=1))
|
||||
|
||||
@ -18,5 +18,6 @@ def testfunc(child):
|
||||
# 1st 6LoWPAN fragment
|
||||
child.expect(r"OK \(\d+ tests\)")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -139,5 +139,6 @@ def testfunc(child):
|
||||
child.expect("dst_l2addr: 3e:e6:b5:22:fd:0a")
|
||||
child.expect("~~ PKT - 2 snips, total size: 61 byte")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=1, traceback=True))
|
||||
|
||||
@ -77,5 +77,6 @@ def testfunc(child):
|
||||
child.expect_exact("source address: fe80::ff:fe00:2")
|
||||
child.expect_exact("destination address: fd01::1")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -50,5 +50,6 @@ def testfunc(child):
|
||||
child.expect_exact(u"Calling test_sock_ip_send__no_sock()")
|
||||
child.expect_exact(u"ALL TESTS SUCCESSFUL")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -54,5 +54,6 @@ def testfunc(child):
|
||||
child.expect_exact(u"Calling test_sock_udp_send__no_sock()")
|
||||
child.expect_exact(u"ALL TESTS SUCCESSFUL")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -11,5 +11,6 @@ def testfunc(child):
|
||||
child.expect('START')
|
||||
child.expect('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -40,5 +40,6 @@ def testfunc(child):
|
||||
expect_binary(child)
|
||||
child.expect_exact('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -16,5 +16,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -307,6 +307,7 @@ def test_triple_send(board_group, application, env=None):
|
||||
sender.expect_exact(u"Success: send 4 byte over TCP to server")
|
||||
receiver.expect(u"00000000 DE AD BE EF")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
TestStrategy().execute([BoardGroup((Board("native", "tap0"), \
|
||||
Board("native", "tap1")))], \
|
||||
|
||||
@ -98,5 +98,6 @@ def testfunc(child):
|
||||
child.expect_exact(u"Calling test_sock_ip_send6__no_sock()")
|
||||
child.expect_exact(u"ALL TESTS SUCCESSFUL")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -92,5 +92,6 @@ def testfunc(child):
|
||||
child.expect_exact("Calling test_tcp_write6__success()")
|
||||
child.expect_exact(u"ALL TESTS SUCCESSFUL")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=60))
|
||||
|
||||
@ -110,5 +110,6 @@ def testfunc(child):
|
||||
child.expect_exact(u"Calling test_sock_udp_send6__no_sock()")
|
||||
child.expect_exact(u"ALL TESTS SUCCESSFUL")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect_exact(u"[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -16,5 +16,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect(u"Test successful.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -11,5 +11,6 @@ def testfunc(child):
|
||||
child.expect('main starting')
|
||||
child.expect('msg available: 1 \(should be 1\!\)')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -32,5 +32,6 @@ def testfunc(child):
|
||||
assert(int(child.match.group(1)) > last)
|
||||
last = int(child.match.group(1))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
for i in range(20):
|
||||
child.expect(r"\[ALIVE\] alternated \d+k times.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -24,5 +24,6 @@ def testfunc(child):
|
||||
child.expect_exact(' + succeeded.')
|
||||
child.expect_exact('ALL TESTS SUCCESSFUL')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -18,6 +18,7 @@ def testfunc(child):
|
||||
child.expect(r' TX packets \d+ \(Multicast: \d+\) bytes \d+')
|
||||
child.expect(r' TX succeeded \d+ errors \d+')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
|
||||
from testrunner import run
|
||||
|
||||
@ -16,5 +16,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect_exact('SUCCESS: NHDP compiled!')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -41,5 +41,6 @@ def testfunc(child):
|
||||
|
||||
print("All tests successful")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=1, echo=False))
|
||||
|
||||
@ -41,5 +41,6 @@ def testfunc(child):
|
||||
|
||||
print("All tests successful")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=1, echo=False))
|
||||
|
||||
@ -23,5 +23,6 @@ def testfunc(child):
|
||||
child.expect_exact('TIMER_{}: starting'.format(timer))
|
||||
child.expect('TEST SUCCEEDED')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -31,5 +31,6 @@ def testfunc(child):
|
||||
child.expect_exact('End read: <YZ> [24:26]')
|
||||
child.expect_exact('End done.')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect_exact(' * audio')
|
||||
child.expect_exact(' * video')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -10,5 +10,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect_exact('SUCCESS: Libcoap compiled!')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -14,5 +14,6 @@ def testfunc(child):
|
||||
child.expect_exact('................ done with 0 error(s)')
|
||||
child.expect_exact('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=60))
|
||||
|
||||
@ -14,5 +14,6 @@ def testfunc(child):
|
||||
child.expect_exact('................ done with 0 error(s)')
|
||||
child.expect_exact('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=60))
|
||||
|
||||
@ -11,5 +11,6 @@ def testfunc(child):
|
||||
child.expect_exact('START')
|
||||
child.expect_exact('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect('Decoding finished succesfully')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -69,6 +69,7 @@ def testfunc(child):
|
||||
for line in EXPECTED_STDOUT:
|
||||
child.expect_exact(line)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
|
||||
from testrunner import run
|
||||
|
||||
@ -22,5 +22,6 @@ def testfunc(child):
|
||||
|
||||
child.expect_exact("[SUCCESS]", timeout=120)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -99,5 +99,6 @@ def testfunc(child):
|
||||
test4(child)
|
||||
child.expect("######################### DONE")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -47,5 +47,6 @@ def testfunc(child):
|
||||
print(e)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, echo=True))
|
||||
|
||||
@ -62,5 +62,6 @@ def testfunc(child):
|
||||
_check_help(child)
|
||||
_check_ps(child)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -37,5 +37,6 @@ def testfunc(child):
|
||||
child.expect('tls tests finished.')
|
||||
child.expect('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -46,5 +46,6 @@ def testfunc(child):
|
||||
child.expect(u"T%i \(prio %i, depth %i\): locked rmutex now" %
|
||||
(T, thread_prio[T], depth))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect_exact('yield 2')
|
||||
child.expect_exact('done')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -57,5 +57,6 @@ def testfunc(child):
|
||||
for cmd, expected in CMDS.items():
|
||||
check_cmd(child, cmd, expected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -27,5 +27,6 @@ def testfunc(child):
|
||||
child.expect_exact('\tmsg_array 4 32')
|
||||
child.expect_exact('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect_exact('calling stack corruption function')
|
||||
child.expect('.*stack smashing detected.*')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -115,5 +115,6 @@ def testfunc(child):
|
||||
_check_doomsday(child)
|
||||
_check_day(child)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect('first thread\r\n')
|
||||
child.expect('second thread\r\n')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -19,5 +19,6 @@ def testfunc(child):
|
||||
child.expect(r"MAIN: \d+! = \d+")
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -12,5 +12,6 @@ def testfunc(child):
|
||||
child.expect(r'\.+')
|
||||
child.expect(r'\[SUCCESS\] created \d+')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -15,5 +15,6 @@ def testfunc(child):
|
||||
child.expect_exact('THREAD 1 end')
|
||||
child.expect_exact('SUCCESS')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect('sender_thread start\r\n')
|
||||
child.expect('main thread alive\r\n')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -17,5 +17,6 @@ def testfunc(child):
|
||||
child.expect('sender_thread start\r\n')
|
||||
child.expect('main thread alive\r\n')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -26,5 +26,6 @@ def testfunc(child):
|
||||
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -16,5 +16,6 @@ import testrunner
|
||||
def testfunc(child):
|
||||
child.expect(u"OK \\([0-9]+ tests\\)")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, timeout=60))
|
||||
|
||||
@ -45,5 +45,6 @@ def testfunc():
|
||||
finally:
|
||||
child.close()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
testfunc()
|
||||
|
||||
@ -23,5 +23,6 @@ def testfunc(child):
|
||||
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -20,5 +20,6 @@ def testfunc(child):
|
||||
child.expect("Timeout!")
|
||||
child.expect("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -18,5 +18,6 @@ def testfunc(child):
|
||||
child.expect(u"\[RESULTS\] min=\d+, avg=\d+, max=\d+")
|
||||
child.expect_exact("[SUCCESS]")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -24,5 +24,6 @@ def testfunc(child):
|
||||
child.expect(u"Min/max error: \d+/\d+")
|
||||
child.expect_exact("Test complete.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -26,5 +26,6 @@ def testfunc(child):
|
||||
child.expect_exact("timer 1 triggered.")
|
||||
child.expect_exact("test successful.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -22,5 +22,6 @@ def testfunc(child):
|
||||
child.expect(u"now=\d+")
|
||||
child.expect_exact("Test completed!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
@ -54,5 +54,6 @@ def testfunc(child):
|
||||
print(e)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc, echo=True))
|
||||
|
||||
@ -30,5 +30,6 @@ def testfunc(child):
|
||||
|
||||
child.expect(u"[SUCCESS]", timeout=3)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(testrunner.run(testfunc))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user