mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
test: Print stderr when subprocess fails
This commit is contained in:
parent
2222c30586
commit
fa69cef13e
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ import os
|
||||||
import pdb
|
import pdb
|
||||||
import random
|
import random
|
||||||
import shutil
|
import shutil
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
|
@ -121,6 +122,9 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.log.exception("Key error")
|
self.log.exception("Key error")
|
||||||
self.success = TestStatus.FAILED
|
self.success = TestStatus.FAILED
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
self.log.exception("Called Process failed with '{}'".format(e.output))
|
||||||
|
self.success = TestStatus.FAILED
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception("Unexpected exception caught during testing")
|
self.log.exception("Unexpected exception caught during testing")
|
||||||
self.success = TestStatus.FAILED
|
self.success = TestStatus.FAILED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue