mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
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:
parent
433412fd84
commit
fad441fba0
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue