meson test --repeat error
See original GitHub issueDescribe the bug
Using meson test --repeat=X
consistently raises an exception in meson:
Exception in callback TestHarness._run_tests.<locals>.test_done(<Task finishe...fa86d3f5100>)>) at /usr/lib/python3.9/site-packages/mesonbuild/mtest.py:1807
handle: <Handle TestHarness._run_tests.<locals>.test_done(<Task finishe...fa86d3f5100>)>) at /usr/lib/python3.9/site-packages/mesonbuild/mtest.py:1807>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3.9/site-packages/mesonbuild/mtest.py", line 1809, in test_done
f.result()
File "/usr/lib/python3.9/site-packages/mesonbuild/mtest.py", line 1805, in run_test
self.process_test_result(res)
File "/usr/lib/python3.9/site-packages/mesonbuild/mtest.py", line 1558, in process_test_result
l.log(self, result)
File "/usr/lib/python3.9/site-packages/mesonbuild/mtest.py", line 657, in log
self.running_tests.remove(result)
File "/usr/lib/python3.9/_collections_abc.py", line 600, in remove
raise KeyError(value)
KeyError: <mesonbuild.mtest.TestRunExitCode object at 0x7fa86d3f5100>
To Reproduce
A meson.build
as simple as:
project('simple', 'cpp')
test('test1', executable('test1', 'test.cpp'))
And test.cpp
:
#include <iostream>
int main() {
std::cerr << "this is a test" << std::endl;
return 0;
}
Reproduces this behavior if you do: meson build
, cd build
, meson test --repeat=10
.
system parameters OS: Arch Linux Python: 3.9.1 Meson: 0.57.1 Ninja: 1.10.2
This doesn’t seem to be happening on Arch Linux alone, as I was getting the same error on my CI builds which use Ubuntu and MacOS.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Unit tests - The Meson Build system
Skipped tests and hard errors ... Again, Meson will detect this and report these tests as ERROR , ignoring the ... meson test...
Read more >Unit tests - GitHub Pages
Sometimes a test can only determine at runtime that it can not be run. The GNU standard approach in this case is to...
Read more >meson(1) - testing - Debian Manpages
Meson does not support building inside the source directory and attempting to do that leads to an error. After a successful configuration step...
Read more >Getting started with Meson (part 4) | by German Diago Gomez
This means that Meson can detect errors at configure time easily. ... meson test --repeat=10# Run 'testname' under valgrind
Read more >google test and wrap file meson - Stack Overflow
Hi in my project I need to use google test and I use the ... meson.build:64:2: ERROR: Subproject exists but has no meson.build...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@schutzekatze See also #8379, this was unfortunately never noticed in the PyPI prerelease
Ok, I will leave the functionality.