We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88153dc commit 5ec11f5Copy full SHA for 5ec11f5
1 file changed
tests/run-tests
@@ -351,14 +351,15 @@ def main():
351
cmd_parser.add_argument('files', nargs='*', help='input test files')
352
args = cmd_parser.parse_args()
353
354
- if args.target in ('pyboard', 'wipy', 'esp8266'):
+ EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266')
355
+ if args.target in EXTERNAL_TARGETS:
356
import pyboard
357
pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password)
358
pyb.enter_raw_repl()
359
elif args.target == 'unix':
360
pyb = None
361
else:
- raise ValueError('target must be either unix, pyboard or wipy')
362
+ raise ValueError('target must be either %s or unix' % ", ".join(EXTERNAL_TARGETS))
363
364
if len(args.files) == 0:
365
if args.test_dirs is None:
0 commit comments