diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-04-29 14:50:10 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2025-04-29 10:14:33 -0700 |
commit | 53f9d60756ee750e93464f8e1b0944ee2b077976 (patch) | |
tree | fa61e1f58c84e883377c6c7ab0c2d852d151ff6d /mesonbuild/compilers/java.py | |
parent | ca464824ab481b12afa9d90a3ff290ffcd7c6601 (diff) | |
download | meson-53f9d60756ee750e93464f8e1b0944ee2b077976.zip meson-53f9d60756ee750e93464f8e1b0944ee2b077976.tar.gz meson-53f9d60756ee750e93464f8e1b0944ee2b077976.tar.bz2 |
unittests: fix overly loose regex in tests for `--slice=` option
The unit tests for the `meson test --slice=` option check that the
option is working by extracting all tests that have been run from the
command output. This is done with a rather loose regular expression
"test-[0-9]*", which can easily match other parts of the output, as
well.
One user for example reported that the test broke because they were
executing tests in a directory called "meson-test-1.8.0-build", and
given that the "test-1" part of that directory matches the regular
expression we have too many matches.
Fix the issue by tightening the regex so that is way less likely to
match anything from the host's build environment.
Reported-by: Dominique Leuenberger <dleuenberger@suse.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Diffstat (limited to 'mesonbuild/compilers/java.py')
0 files changed, 0 insertions, 0 deletions