diff options
| author | blmorris <bryan.morrissey@gmail.com> | 2014-10-01 13:53:50 -0400 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-10-01 23:31:52 +0100 |
| commit | 3b064370f83891a25f1fb786f079cd0e0383903e (patch) | |
| tree | 1afbc8b9f8d42df7fef486ee556ec3c1b4133f68 /tests | |
| parent | 762d57519d2e7bdd249ad2aa2087943993e694ac (diff) | |
Enable device keyword option when running pyboard.py --tests and run-tests --pyboard
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/run-tests | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests index 6d5752e68..20fe1a541 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -139,6 +139,7 @@ def run_tests(pyb, tests, args): def main(): cmd_parser = argparse.ArgumentParser(description='Run tests for Micro Python.') cmd_parser.add_argument('--pyboard', action='store_true', help='run the tests on the pyboard') + cmd_parser.add_argument('--device', default='/dev/ttyACM0', help='the serial device of the pyboard') cmd_parser.add_argument('-d', '--test-dirs', nargs='*', help='input test directories (if no files given)') cmd_parser.add_argument('--write-exp', action='store_true', help='save .exp files to run tests w/o CPython') cmd_parser.add_argument('--emit', default='bytecode', help='Micro Python emitter to use (bytecode or native)') @@ -147,7 +148,7 @@ def main(): if args.pyboard: import pyboard - pyb = pyboard.Pyboard('/dev/ttyACM0') + pyb = pyboard.Pyboard(args.device) pyb.enter_raw_repl() else: pyb = None |
