question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

meson test --repeat error

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eli-schwartzcommented, Feb 24, 2021

@schutzekatze See also #8379, this was unfortunately never noticed in the PyPI prerelease

0reactions
bonzinicommented, Feb 24, 2021

Ok, I will leave the functionality.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found