Commit 5ec11f56 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/run-tests: Factor out list supported external boards.

To get consistent error messages, etc.
parent 88153dc5
......@@ -351,14 +351,15 @@ def main():
cmd_parser.add_argument('files', nargs='*', help='input test files')
args = cmd_parser.parse_args()
if in ('pyboard', 'wipy', 'esp8266'):
EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266')
import pyboard
pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password)
elif == 'unix':
pyb = None
raise ValueError('target must be either unix, pyboard or wipy')
raise ValueError('target must be either %s or unix' % ", ".join(EXTERNAL_TARGETS))
if len(args.files) == 0:
if args.test_dirs is None:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment