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 committed 2025-01-08 10:55:15 +01:00
1 parent 433412fd84
commit fad441fba0
1 file changed
+2 -1
+2 -1
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):