diff options
author | stijn <stijn@ignitron.net> | 2020-04-08 08:01:58 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-08-27 11:12:08 +1000 |
commit | 405893afc6654ed2ace9a6475bfd2095133e614a (patch) | |
tree | f22eb5691609d6100a8f7f4e2ea936b70e2ef3ab /tests/basics/struct_micropython.py.exp | |
parent | 91c5d168c061ec45a548876a76a5540316d02594 (diff) | |
download | micropython-405893afc6654ed2ace9a6475bfd2095133e614a.tar.gz micropython-405893afc6654ed2ace9a6475bfd2095133e614a.zip |
tests/run-tests: Use absolute paths where possible.
Replace some usages of paths relative to the current working directory
with absolute paths relative to the tests directory.
Fixes and resulting changes:
- default values of MICROPYTHON and MPYCROSS are absolute paths and
always correct
- likewise, the correct full paths for tools and extmod directories
are appended to sys.path
- printing/cleaning failures works properly since it expects the .exp
and .out files in the tests directory which is also where they
are written to now, plus no more need for changing directories
This fixes #5872 and allows running custom tests which use run-tests
without having to cd to the tests directory first, and the test output
still is in the tests/ directory instead of the current working directory.
Discovery of tests and all skip test logic based on paths relative to
the current working directory remains unchanged which essentially means
that for running most of MicroPython's own tests, run-tests must still
be ran from within it's directory, so document that.
Diffstat (limited to 'tests/basics/struct_micropython.py.exp')
0 files changed, 0 insertions, 0 deletions