aboutsummaryrefslogtreecommitdiff
path: root/tests/run-tests
diff options
context:
space:
mode:
authorDamien George2018-09-05 15:35:18 +1000
committerDamien George2018-09-05 15:36:33 +1000
commite814db592dfa574a4f41717a1bc1734919a780c4 (patch)
treed73e6bdac64698b477ccee825d292da1a289febc /tests/run-tests
parenta23719e0ad134dcc2e771bb6932fbfdc3ac33f17 (diff)
tests: Remove pyboard.py symlink and instead import from ../tools.
To eliminate the need for symlinks which don't work on systems like Windows.
Diffstat (limited to 'tests/run-tests')
-rwxr-xr-xtests/run-tests3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests
index cf59e4668..07d326811 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -139,7 +139,6 @@ def run_micropython(pyb, args, test_file, is_special=False):
else:
# run on pyboard
- import pyboard
pyb.enter_raw_repl()
try:
output_mupy = pyb.execfile(test_file)
@@ -533,6 +532,8 @@ the last matching regex is used:
if args.target == 'unix' or args.list_tests:
pyb = None
elif args.target in EXTERNAL_TARGETS:
+ global pyboard
+ sys.path.append('../tools')
import pyboard
pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password)
pyb.enter_raw_repl()