Merge pull request #8249 from aabadie/pr/tests/python_E402

tests: fix python style E402
This commit is contained in:
Martine Lenders 2017-12-13 10:36:46 +01:00 committed by GitHub
commit d922b06fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
84 changed files with 252 additions and 338 deletions

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("Start.") child.expect_exact("Start.")
@ -21,4 +18,6 @@ def testfunc(child):
child.expect_exact("Done.") child.expect_exact("Done.")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=30)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=30))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("Testing Bloom filter.") child.expect_exact("Testing Bloom filter.")
@ -24,4 +21,6 @@ def testfunc(child):
child.expect_exact("All done!") child.expect_exact("All done!")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("On-board button test") child.expect_exact("On-board button test")
@ -24,4 +21,6 @@ def testfunc(child):
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
ACCEPTED_ERROR = 20 ACCEPTED_ERROR = 20
@ -52,4 +49,6 @@ def testfunc(child):
print("All tests successful") print("All tests successful")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, echo=False)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, echo=False))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("************ C++ condition_variable test ***********") child.expect_exact("************ C++ condition_variable test ***********")
@ -28,4 +25,6 @@ def testfunc(child):
child.expect_exact("******************************************************") child.expect_exact("******************************************************")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("************ C++ mutex test ***********") child.expect_exact("************ C++ mutex test ***********")
@ -24,4 +21,6 @@ def testfunc(child):
child.expect_exact("*****************************************") child.expect_exact("*****************************************")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("************ C++ thread test ***********") child.expect_exact("************ C++ thread test ***********")
@ -36,4 +33,6 @@ def testfunc(child):
child.expect_exact("******************************************") child.expect_exact("******************************************")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect([r"OK \([0-9]+ tests\)", child.expect([r"OK \([0-9]+ tests\)",
r"error: unable to initialize RTC \[I2C initialization error\]"]) r"error: unable to initialize RTC \[I2C initialization error\]"])
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact(u"[SUCCESS]", timeout=60) child.expect_exact(u"[SUCCESS]", timeout=60)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,13 +10,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("[START]") child.expect_exact("[START]")
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("[SUCCESS]", timeout=60) child.expect_exact("[SUCCESS]", timeout=60)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact(u"[SUCCESS]") child.expect_exact(u"[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@ from __future__ import print_function
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
ACCEPTED_ERROR = 20 ACCEPTED_ERROR = 20
@ -32,4 +29,6 @@ def testfunc(child):
print("All tests successful") print("All tests successful")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, echo=False)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, echo=False))

View File

@ -10,9 +10,6 @@ from __future__ import print_function
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
how_many = 100 how_many = 100
@ -26,4 +23,6 @@ def testfunc(child):
print("=> All tests successful") print("=> All tests successful")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, echo=False)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, echo=False))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("Testing floating point arithmetics...") child.expect_exact("Testing floating point arithmetics...")
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,13 +3,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('If you can read this:') child.expect_exact('If you can read this:')
child.expect_exact('Test successful.') child.expect_exact('Test successful.')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
index = child.expect_exact([ index = child.expect_exact([
@ -41,4 +38,6 @@ def testfunc(child):
child.expect_exact("pkt->users: 0") child.expect_exact("pkt->users: 0")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(r"OK \(\d+ tests\)") child.expect(r"OK \(\d+ tests\)")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=1)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(r"OK \(\d+ tests\)") child.expect(r"OK \(\d+ tests\)")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=1)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,13 +10,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
# 1st 6LoWPAN fragment # 1st 6LoWPAN fragment
child.expect(r"OK \(\d+ tests\)") child.expect(r"OK \(\d+ tests\)")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
# embUnit tests # embUnit tests
@ -140,4 +137,6 @@ def testfunc(child):
child.expect("~~ PKT - 2 snips, total size: 61 byte") child.expect("~~ PKT - 2 snips, total size: 61 byte")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=1, traceback=True)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=1, traceback=True))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
# 1st 6LoWPAN fragment # 1st 6LoWPAN fragment
@ -78,4 +75,6 @@ def testfunc(child):
child.expect_exact("destination address: fd01::1") child.expect_exact("destination address: fd01::1")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact(u"Calling test_sock_ip_create__EAFNOSUPPORT()") child.expect_exact(u"Calling test_sock_ip_create__EAFNOSUPPORT()")
@ -51,4 +48,6 @@ def testfunc(child):
child.expect_exact(u"ALL TESTS SUCCESSFUL") child.expect_exact(u"ALL TESTS SUCCESSFUL")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact(u"Calling test_sock_udp_create__EADDRINUSE()") child.expect_exact(u"Calling test_sock_udp_create__EADDRINUSE()")
@ -55,4 +52,6 @@ def testfunc(child):
child.expect_exact(u"ALL TESTS SUCCESSFUL") child.expect_exact(u"ALL TESTS SUCCESSFUL")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,13 +3,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('START') child.expect('START')
child.expect('SUCCESS') child.expect('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def expect_unary(child): def expect_unary(child):
for _ in range(20): for _ in range(20):
@ -41,4 +38,6 @@ def testfunc(child):
child.expect_exact('SUCCESS') child.expect_exact('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,12 +9,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('SUCCESS') child.expect('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def _ipv6_tests(code): def _ipv6_tests(code):
return code & (1 << 6) return code & (1 << 6)
@ -99,4 +96,6 @@ def testfunc(child):
child.expect_exact(u"ALL TESTS SUCCESSFUL") child.expect_exact(u"ALL TESTS SUCCESSFUL")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def _reuse_tests(code): def _reuse_tests(code):
return code & 1 return code & 1
@ -93,4 +90,6 @@ def testfunc(child):
child.expect_exact(u"ALL TESTS SUCCESSFUL") child.expect_exact(u"ALL TESTS SUCCESSFUL")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=60)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def _reuse_tests(code): def _reuse_tests(code):
return code & 1 return code & 1
@ -111,4 +108,6 @@ def testfunc(child):
child.expect_exact(u"ALL TESTS SUCCESSFUL") child.expect_exact(u"ALL TESTS SUCCESSFUL")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact(u"[SUCCESS]") child.expect_exact(u"[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,12 +9,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(u"Test successful.") child.expect(u"Test successful.")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,13 +3,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('main starting') child.expect('main starting')
child.expect('msg available: 1 \(should be 1\!\)') child.expect('msg available: 1 \(should be 1\!\)')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
thread_prio = { thread_prio = {
3: 6, 3: 6,
4: 4, 4: 4,
@ -33,4 +30,6 @@ def testfunc(child):
last = int(child.match.group(1)) last = int(child.match.group(1))
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
for i in range(20): for i in range(20):
child.expect(r"\[ALIVE\] alternated \d+k times.") child.expect(r"\[ALIVE\] alternated \d+k times.")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('Executing test_get_addr()') child.expect_exact('Executing test_get_addr()')
@ -25,4 +22,6 @@ def testfunc(child):
child.expect_exact('ALL TESTS SUCCESSFUL') child.expect_exact('ALL TESTS SUCCESSFUL')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,12 +9,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('SUCCESS: NHDP compiled!') child.expect_exact('SUCCESS: NHDP compiled!')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("od_hex_dump(short_str, sizeof(short_str), OD_WIDTH_DEFAULT)") child.expect_exact("od_hex_dump(short_str, sizeof(short_str), OD_WIDTH_DEFAULT)")
@ -42,4 +39,6 @@ def testfunc(child):
print("All tests successful") print("All tests successful")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=1, echo=False)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=1, echo=False))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("od_hex_dump(short_str, sizeof(short_str), OD_WIDTH_DEFAULT)") child.expect_exact("od_hex_dump(short_str, sizeof(short_str), OD_WIDTH_DEFAULT)")
@ -42,4 +39,6 @@ def testfunc(child):
print("All tests successful") print("All tests successful")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=1, echo=False)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=1, echo=False))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('Available timers: (\d+)') child.expect('Available timers: (\d+)')
@ -24,4 +21,6 @@ def testfunc(child):
child.expect('TEST SUCCEEDED') child.expect('TEST SUCCEEDED')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('Start.') child.expect_exact('Start.')
@ -32,4 +29,6 @@ def testfunc(child):
child.expect_exact('End done.') child.expect_exact('End done.')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('- User: johndoe') child.expect_exact('- User: johndoe')
@ -18,4 +15,6 @@ def testfunc(child):
child.expect_exact(' * video') child.expect_exact(' * video')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,12 +3,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('SUCCESS: Libcoap compiled!') child.expect_exact('SUCCESS: Libcoap compiled!')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('micro-ecc compiled!') child.expect_exact('micro-ecc compiled!')
@ -15,4 +12,6 @@ def testfunc(child):
child.expect_exact('SUCCESS') child.expect_exact('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=60)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('micro-ecc compiled!') child.expect_exact('micro-ecc compiled!')
@ -15,4 +12,6 @@ def testfunc(child):
child.expect_exact('SUCCESS') child.expect_exact('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=60)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -3,13 +3,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('START') child.expect_exact('START')
child.expect_exact('SUCCESS') child.expect_exact('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,12 +10,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('Decoding finished succesfully') child.expect('Decoding finished succesfully')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(u".... . ._.. ._.. ___ / ._. .. ___ _ ___ ...", timeout=30) child.expect(u".... . ._.. ._.. ___ / ._. .. ___ _ ___ ...", timeout=30)
@ -23,4 +20,6 @@ def testfunc(child):
child.expect_exact("[SUCCESS]", timeout=120) child.expect_exact("[SUCCESS]", timeout=120)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def test1(term): def test1(term):
term.expect_exact("######################### TEST1:") term.expect_exact("######################### TEST1:")
@ -100,4 +97,6 @@ def testfunc(child):
child.expect("######################### DONE") child.expect("######################### DONE")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -12,9 +12,6 @@ import os
import sys import sys
import time import time
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
US_PER_SEC = 1000000 US_PER_SEC = 1000000
EXTERNAL_JITTER = 0.15 EXTERNAL_JITTER = 0.15
@ -48,4 +45,6 @@ def testfunc(child):
sys.exit(1) sys.exit(1)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, echo=True)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,10 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
PS_EXPECTED = ( PS_EXPECTED = (
('\tpid | name | state Q | pri | stack ( used) | ' ('\tpid | name | state Q | pri | stack ( used) | '
'base addr | current | runtime | switches'), 'base addr | current | runtime | switches'),
@ -63,4 +59,6 @@ def testfunc(child):
_check_ps(child) _check_ps(child)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -4,10 +4,6 @@ import os
import sys import sys
import math import math
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
FACTORIAL_PARAM = 6 FACTORIAL_PARAM = 6
@ -22,4 +18,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('START') child.expect('START')
@ -19,4 +16,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('START') child.expect('START')
@ -23,4 +20,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('START') child.expect('START')
@ -16,4 +13,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
# This test can take some time to complete when testing on hardware (e.g # This test can take some time to complete when testing on hardware (e.g
# on samr21-xpro) and the default timeout (10s) is not enough. # on samr21-xpro) and the default timeout (10s) is not enough.
sys.exit(testrunner.run(testfunc, timeout=60)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('START') child.expect('START')
@ -20,4 +17,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('START') child.expect('START')
@ -19,4 +16,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def _check_test_output(child): def _check_test_output(child):
child.expect('show tls values:') child.expect('show tls values:')
@ -38,4 +35,6 @@ def testfunc(child):
child.expect('SUCCESS') child.expect('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -11,9 +11,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
thread_prio = { thread_prio = {
3: 6, 3: 6,
4: 4, 4: 4,
@ -47,4 +44,6 @@ def testfunc(child):
(T, thread_prio[T], depth)) (T, thread_prio[T], depth))
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('The output should be: yield 1, snd_thread running, ' child.expect_exact('The output should be: yield 1, snd_thread running, '
@ -18,4 +15,6 @@ def testfunc(child):
child.expect_exact('done') child.expect_exact('done')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
EXPECTED_HELP = ( EXPECTED_HELP = (
'Command Description', 'Command Description',
'---------------------------------------', '---------------------------------------',
@ -58,4 +55,6 @@ def testfunc(child):
check_cmd(child, cmd, expected) check_cmd(child, cmd, expected)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('\tmember, sizeof, offsetof') child.expect_exact('\tmember, sizeof, offsetof')
@ -28,4 +25,6 @@ def testfunc(child):
child.expect_exact('SUCCESS') child.expect_exact('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('calling stack corruption function') child.expect_exact('calling stack corruption function')
child.expect('.*stack smashing detected.*') child.expect('.*stack smashing detected.*')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -11,9 +11,6 @@ import sys
import calendar import calendar
import datetime import datetime
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def _check_help(child): def _check_help(child):
child.sendline('help') child.sendline('help')
@ -116,4 +113,6 @@ def testfunc(child):
_check_day(child) _check_day(child)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('first thread\r\n') child.expect('first thread\r\n')
child.expect('second thread\r\n') child.expect('second thread\r\n')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(r"MAIN: reply from T-\d+") child.expect(r"MAIN: reply from T-\d+")
@ -20,4 +17,6 @@ def testfunc(child):
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect("main: starting") child.expect("main: starting")
@ -19,4 +16,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect("START") child.expect("START")
@ -31,4 +28,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect("START") child.expect("START")
@ -15,4 +12,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact(u'[START] Spawning threads') child.expect_exact(u'[START] Spawning threads')
@ -13,4 +10,6 @@ def testfunc(child):
child.expect(r'\[SUCCESS\] created \d+') child.expect(r'\[SUCCESS\] created \d+')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact('THREADS CREATED') child.expect_exact('THREADS CREATED')
@ -16,4 +13,6 @@ def testfunc(child):
child.expect_exact('SUCCESS') child.expect_exact('SUCCESS')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('sender_thread start\r\n') child.expect('sender_thread start\r\n')
child.expect('main thread alive\r\n') child.expect('main thread alive\r\n')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,13 +9,12 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect('sender_thread start\r\n') child.expect('sender_thread start\r\n')
child.expect('main thread alive\r\n') child.expect('main thread alive\r\n')
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -3,9 +3,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect("START") child.expect("START")
@ -23,4 +20,6 @@ def testfunc(child):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("[START]") child.expect_exact("[START]")
@ -27,4 +24,6 @@ def testfunc(child):
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,12 +9,11 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(u"OK \\([0-9]+ tests\\)") child.expect(u"OK \\([0-9]+ tests\\)")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, timeout=60)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("[START]") child.expect_exact("[START]")
@ -24,4 +21,6 @@ def testfunc(child):
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect("[START]") child.expect("[START]")
@ -21,4 +18,6 @@ def testfunc(child):
child.expect("[SUCCESS]") child.expect("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("[START]") child.expect_exact("[START]")
@ -19,4 +16,6 @@ def testfunc(child):
child.expect_exact("[SUCCESS]") child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("xtimer_periodic_wakeup test application.") child.expect_exact("xtimer_periodic_wakeup test application.")
@ -25,4 +22,6 @@ def testfunc(child):
child.expect_exact("Test complete.") child.expect_exact("Test complete.")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect_exact("xtimer_remove test application.") child.expect_exact("xtimer_remove test application.")
@ -27,4 +24,6 @@ def testfunc(child):
child.expect_exact("test successful.") child.expect_exact("test successful.")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -9,9 +9,6 @@
import os import os
import sys import sys
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): 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.")
@ -23,4 +20,6 @@ def testfunc(child):
child.expect_exact("Test completed!") child.expect_exact("Test completed!")
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -13,9 +13,6 @@ import os
import sys import sys
import time import time
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
US_PER_SEC = 1000000 US_PER_SEC = 1000000
INTERNAL_JITTER = 0.05 INTERNAL_JITTER = 0.05
EXTERNAL_JITTER = 0.15 EXTERNAL_JITTER = 0.15
@ -55,4 +52,6 @@ def testfunc(child):
sys.exit(1) sys.exit(1)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc, echo=True)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -10,9 +10,6 @@ import os
import sys import sys
import pexpect import pexpect
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child): def testfunc(child):
child.expect(u"This test will call xtimer_usleep for values from \\d+ down to \\d+\r\n") child.expect(u"This test will call xtimer_usleep for values from \\d+ down to \\d+\r\n")
@ -31,4 +28,6 @@ def testfunc(child):
child.expect(u"[SUCCESS]", timeout=3) child.expect(u"[SUCCESS]", timeout=3)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(testrunner.run(testfunc)) sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))