summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/struct_micropython.py.exp
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-04-08 08:01:58 +0200
committerDamien George <damien@micropython.org>2020-08-27 11:12:08 +1000
commit405893afc6654ed2ace9a6475bfd2095133e614a (patch)
treef22eb5691609d6100a8f7f4e2ea936b70e2ef3ab /tests/basics/struct_micropython.py.exp
parent91c5d168c061ec45a548876a76a5540316d02594 (diff)
downloadmicropython-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