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:
1 file changed
+2
-1
@@ -20,6 +20,7 @@ import time
|
|||||||
import urllib.parse
|
import urllib.parse
|
||||||
import collections
|
import collections
|
||||||
import shlex
|
import shlex
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from .authproxy import (
|
from .authproxy import (
|
||||||
@@ -204,7 +205,7 @@ class TestNode():
|
|||||||
# Should only happen on test failure
|
# Should only happen on test failure
|
||||||
# Avoid using logger, as that may have already been shutdown when
|
# Avoid using logger, as that may have already been shutdown when
|
||||||
# this destructor is called.
|
# 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()
|
self.process.kill()
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
|
|||||||
Reference in new issue
Block a user