Skip to content
Snippets Groups Projects
Commit e814db59 authored by Damien George's avatar Damien George
Browse files

tests: Remove pyboard.py symlink and instead import from ../tools.

To eliminate the need for symlinks which don't work on systems like
Windows.
parent a23719e0
No related branches found
No related tags found
No related merge requests found
../tools/pyboard.py
\ No newline at end of file
...@@ -139,7 +139,6 @@ def run_micropython(pyb, args, test_file, is_special=False): ...@@ -139,7 +139,6 @@ def run_micropython(pyb, args, test_file, is_special=False):
else: else:
# run on pyboard # run on pyboard
import pyboard
pyb.enter_raw_repl() pyb.enter_raw_repl()
try: try:
output_mupy = pyb.execfile(test_file) output_mupy = pyb.execfile(test_file)
...@@ -533,6 +532,8 @@ the last matching regex is used: ...@@ -533,6 +532,8 @@ the last matching regex is used:
if args.target == 'unix' or args.list_tests: if args.target == 'unix' or args.list_tests:
pyb = None pyb = None
elif args.target in EXTERNAL_TARGETS: elif args.target in EXTERNAL_TARGETS:
global pyboard
sys.path.append('../tools')
import pyboard import pyboard
pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password) pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password)
pyb.enter_raw_repl() pyb.enter_raw_repl()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment