From 2b12cac31ef636191d9dafec58bb56b960491c6d Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 16 Dec 2020 20:22:35 +0100 Subject: [PATCH] pytest: Skip hsm encryption test if we don't have a TTY --- tests/test_wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_wallet.py b/tests/test_wallet.py index 57e049615..2f8943b96 100644 --- a/tests/test_wallet.py +++ b/tests/test_wallet.py @@ -12,6 +12,7 @@ from utils import ( import os import pytest import subprocess +import sys import unittest @@ -946,6 +947,7 @@ def test_transaction_annotations(node_factory, bitcoind): @unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.") +@unittest.skipIf(not sys.stdout.isatty(), "Cannot") def test_hsm_secret_encryption(node_factory): l1 = node_factory.get_node(may_fail=True) # May fail when started without key password = "reckful\n"