diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-02-15 14:48:28 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-02-20 14:21:31 +0200 |
commit | c85f7a39a80ccbadb9ffb76102da30c05e3db66f (patch) | |
tree | 528b37713a8e8ee23b9c96b6a6e35244ad0b29f2 /mesonbuild/modules/python.py | |
parent | a3e4272bd328778c1d35fd0f688fa29eef6a01f4 (diff) | |
download | meson-c85f7a39a80ccbadb9ffb76102da30c05e3db66f.zip meson-c85f7a39a80ccbadb9ffb76102da30c05e3db66f.tar.gz meson-c85f7a39a80ccbadb9ffb76102da30c05e3db66f.tar.bz2 |
mtest: raise informative error message when test program doesn't exist
If --no-rebuild is used, the test program might not exist, spawning a
FileNotFoundError inside a long traceback rooted in subprocess.Popen
trying to run that test program. Current versions of Meson even say it's
an "unhandled python exception".
But we can do one better and actually tell the user what is wrong, why,
and what to do to fix it. And we can do so before getting waist deep in
partially running tests.
Fixes #10006
Diffstat (limited to 'mesonbuild/modules/python.py')
0 files changed, 0 insertions, 0 deletions