Commit bca5034
committed
tests/run-tests.py: Use normal discovery if tests dir passed explicitly.
Scan the --test-dirs argument for the main tests directory being
passed and if so do the same thing as if running from within that
main test directory.
In practice this makes the following (which used to counterintuitively
try and fail to run the .py files in the tests/ directory itself)
>python micropython/tests/run-tests.py -d micropython/tests
do the same thing as
>cd micropython/tests
>python ./run-tests.py
which is logical and convenient.
Signed-off-by: stijn <stijn@ignitron.net>1 parent 03e0651 commit bca5034
1 file changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | | - | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1226 | 1238 | | |
1227 | 1239 | | |
1228 | 1240 | | |
| |||
1246 | 1258 | | |
1247 | 1259 | | |
1248 | 1260 | | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1252 | 1264 | | |
1253 | 1265 | | |
1254 | 1266 | | |
1255 | | - | |
| 1267 | + | |
1256 | 1268 | | |
1257 | 1269 | | |
1258 | 1270 | | |
| |||
0 commit comments