From 9988d989298baf320d3c501feb84633271e12f15 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 8 Jan 2020 09:43:16 +0100 Subject: [PATCH 1/2] tests/pkg_cmsis-dsp: cleanup Python test script --- tests/pkg_cmsis-dsp/tests/01-run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/pkg_cmsis-dsp/tests/01-run.py b/tests/pkg_cmsis-dsp/tests/01-run.py index d06bb83679..b7900687f6 100755 --- a/tests/pkg_cmsis-dsp/tests/01-run.py +++ b/tests/pkg_cmsis-dsp/tests/01-run.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 -import os import sys +from testrunner import run def testfunc(child): @@ -11,6 +11,4 @@ def testfunc(child): if __name__ == "__main__": - sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner')) - from testrunner import run sys.exit(run(testfunc)) From 330b2b6e58ce88bd183eaf1fcfc6354328ae60b1 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 8 Jan 2020 09:46:09 +0100 Subject: [PATCH 2/2] tests/lua_loader: cleanup Python test script --- tests/lua_loader/tests/01-run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/lua_loader/tests/01-run.py b/tests/lua_loader/tests/01-run.py index 44b7e104c3..2f65f196bf 100755 --- a/tests/lua_loader/tests/01-run.py +++ b/tests/lua_loader/tests/01-run.py @@ -9,8 +9,8 @@ # Tell the lua interpreter running in riot to load some modules and print # the value of a variable inside that module. -import os import sys +from testrunner import run MODULE_QUERIES = [ ("m1", "a", "Quando uma lua"), @@ -31,6 +31,4 @@ def test(child): if __name__ == "__main__": - sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner')) - from testrunner import run sys.exit(run(test))