test: Treat leftover process as error

Printing to stderr instead of stdout makes the test_runner.py fail on
leftover processes. This is desired and fine, because a leftover process
should only happen on a test failure anyway.
This commit is contained in:
MarcoFalke 2025-01-08 11:00:58 +01:00
parent 433412fd84
commit fad441fba0
No known key found for this signature in database

View file

@ -20,6 +20,7 @@ import time
import urllib.parse
import collections
import shlex
import sys
from pathlib import Path
from .authproxy import (
@ -204,7 +205,7 @@ class TestNode():
# Should only happen on test failure
# Avoid using logger, as that may have already been shutdown when
# this destructor is called.
print(self._node_msg("Cleaning up leftover process"))
print(self._node_msg("Cleaning up leftover process"), file=sys.stderr)
self.process.kill()
def __getattr__(self, name):