Skip to content

Commit 882c2d9

Browse files
devrandomksedgwic
authored andcommitted
Skip incompatible tests based on hsmd daemon name prefix
This allows tests to be skipped for multiple named variations (`remote_hsmd*`), including the "Greenlight" PoC (`remote_hsmd_greenlight` symlink to the Rust implementation) This also avoids the test harness trying to launch `remote_hsmd` when `lightningd` is a more appropriate launcher.
1 parent 079d3b4 commit 882c2d9

File tree

8 files changed

+49
-49
lines changed

8 files changed

+49
-49
lines changed

tests/test_closing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
10821082

10831083
@pytest.mark.developer("needs DEVELOPER=1")
10841084
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")
1085-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "policy: can't sign revoked commitment number")
1085+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't sign revoked commitment number")
10861086
@pytest.mark.slow_test
10871087
def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams):
10881088
""" Test that the penalizing node claims any published
@@ -1216,7 +1216,7 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams):
12161216

12171217
@pytest.mark.developer("needs DEVELOPER=1")
12181218
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")
1219-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "policy: can't sign revoked commitment number")
1219+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't sign revoked commitment number")
12201220
@pytest.mark.slow_test
12211221
def test_penalty_htlc_tx_timeout(node_factory, bitcoind, chainparams):
12221222
""" Test that the penalizing node claims any published
@@ -2812,7 +2812,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
28122812

28132813

28142814
@pytest.mark.developer("needs DEVELOPER=1")
2815-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "policy: can't withdraw to non-wallet address")
2815+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address")
28162816
def test_permfail(node_factory, bitcoind):
28172817
l1, l2 = node_factory.line_graph(2)
28182818

@@ -2917,7 +2917,7 @@ def test_shutdown(node_factory):
29172917

29182918
@flaky
29192919
@pytest.mark.developer("needs to set upfront_shutdown_script")
2920-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "policy failure: validate_mutual_close_tx: holder_script doesn't match upfront holder_shutdown_script")
2920+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy failure: validate_mutual_close_tx: holder_script doesn't match upfront holder_shutdown_script")
29212921
def test_option_upfront_shutdown_script(node_factory, bitcoind, executor):
29222922
# There's a workaround in channeld, that it treats incoming errors
29232923
# before both sides are locked in as warnings; this happens in

tests/test_connection.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def test_disconnect_fundee(node_factory):
395395
@pytest.mark.developer
396396
@pytest.mark.openchannel('v2')
397397
@unittest.skipIf(os.getenv('SUBDAEMON', 'xxx') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
398-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
398+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
399399
def test_disconnect_fundee_v2(node_factory):
400400
# Now error on fundee side during channel open, with them funding
401401
disconnects = ['-WIRE_ACCEPT_CHANNEL2',
@@ -598,7 +598,7 @@ def test_reconnect_no_update(node_factory, executor, bitcoind):
598598
l1.daemon.wait_for_log(r"CLOSINGD_COMPLETE")
599599

600600

601-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't like hsm_secret shenanigans")
601+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like hsm_secret shenanigans")
602602
def test_connect_stresstest(node_factory, executor):
603603
# This test is unreliable, but it's better than nothing.
604604
l1, l2, l3 = node_factory.get_nodes(3, opts={'may_reconnect': True})
@@ -1047,7 +1047,7 @@ def test_funding_toolarge(node_factory, bitcoind):
10471047

10481048
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
10491049
@pytest.mark.openchannel('v2')
1050-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
1050+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
10511051
def test_v2_open(node_factory, bitcoind, chainparams):
10521052
l1, l2 = node_factory.get_nodes(2)
10531053

@@ -1504,7 +1504,7 @@ def test_funding_v2_cancel_race(node_factory, bitcoind, executor):
15041504
@pytest.mark.openchannel('v1')
15051505
@pytest.mark.openchannel('v2')
15061506
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
1507-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd can't handle random external addresses (allowlist)")
1507+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd can't handle random external addresses (allowlist)")
15081508
def test_funding_close_upfront(node_factory, bitcoind):
15091509
opts = {'plugin': os.path.join(os.getcwd(), 'tests/plugins/openchannel_hook_accepter.py')}
15101510

@@ -1647,7 +1647,7 @@ def test_funding_external_wallet(node_factory, bitcoind):
16471647

16481648
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
16491649
@pytest.mark.openchannel('v1') # We manually turn on dual-funding for select nodes
1650-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
1650+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
16511651
def test_multifunding_v1_v2_mixed(node_factory, bitcoind):
16521652
'''
16531653
Simple test for multifundchannel, using v1 + v2
@@ -1689,7 +1689,7 @@ def test_multifunding_v1_v2_mixed(node_factory, bitcoind):
16891689

16901690
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
16911691
@pytest.mark.openchannel('v2')
1692-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
1692+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
16931693
def test_multifunding_v2_exclusive(node_factory, bitcoind):
16941694
'''
16951695
Simple test for multifundchannel, using v2
@@ -2637,7 +2637,7 @@ def mock_sendrawtransaction(r):
26372637

26382638

26392639
@pytest.mark.developer("needs dev_fail")
2640-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "policy: can't withdraw to non-wallet address")
2640+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address")
26412641
def test_no_fee_estimate(node_factory, bitcoind, executor):
26422642
l1 = node_factory.get_node(start=False, options={'dev-no-fake-fees': True})
26432643

@@ -3096,7 +3096,7 @@ def test_fail_unconfirmed(node_factory, bitcoind, executor):
30963096
@pytest.mark.developer("need dev-disconnect")
30973097
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
30983098
@pytest.mark.openchannel('v2')
3099-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
3099+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
31003100
def test_fail_unconfirmed_openchannel2(node_factory, bitcoind, executor):
31013101
"""Test that if we crash with an unconfirmed connection to a known
31023102
peer, we don't have a dangling peer in db"""
@@ -3385,7 +3385,7 @@ def test_channel_features(node_factory, bitcoind):
33853385

33863386

33873387
@pytest.mark.developer("need dev-force-features")
3388-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support non-option_static_remotekey")
3388+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support non-option_static_remotekey")
33893389
def test_nonstatic_channel(node_factory, bitcoind):
33903390
"""Smoke test for a channel without option_static_remotekey"""
33913391
l1, l2 = node_factory.line_graph(2,

tests/test_db.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_max_channel_id(node_factory, bitcoind):
134134
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
135135
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
136136
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
137-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't like channel_nonce changing")
137+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like channel_nonce changing")
138138
def test_scid_upgrade(node_factory, bitcoind):
139139
bitcoind.generate_block(1)
140140

@@ -148,7 +148,7 @@ def test_scid_upgrade(node_factory, bitcoind):
148148
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
149149
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
150150
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
151-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't like channel_nonce changing")
151+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like channel_nonce changing")
152152
def test_last_tx_inflight_psbt_upgrade(node_factory, bitcoind):
153153
bitcoind.generate_block(12)
154154

@@ -171,7 +171,7 @@ def test_last_tx_inflight_psbt_upgrade(node_factory, bitcoind):
171171
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
172172
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
173173
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
174-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't like channel_nonce changing")
174+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like channel_nonce changing")
175175
def test_last_tx_psbt_upgrade(node_factory, bitcoind):
176176
bitcoind.generate_block(12)
177177

@@ -208,7 +208,7 @@ def test_last_tx_psbt_upgrade(node_factory, bitcoind):
208208

209209
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
210210
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
211-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support backfill yet")
211+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support backfill yet")
212212
def test_backfill_scriptpubkeys(node_factory, bitcoind):
213213
bitcoind.generate_block(214)
214214

@@ -335,7 +335,7 @@ def get_dsn(self):
335335
os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3',
336336
"This test is based on a sqlite3 snapshot"
337337
)
338-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support DB migration")
338+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support DB migration")
339339
def test_local_basepoints_cache(bitcoind, node_factory):
340340
"""XXX started caching the local basepoints as well as the remote ones.
341341

tests/test_misc.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def is_p2wpkh(output):
462462
assert only_one(fundingtx['vin'])['txid'] == res['wallettxid']
463463

464464

465-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "policy: can't withdraw to non-wallet address")
465+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address")
466466
def test_withdraw_misc(node_factory, bitcoind, chainparams):
467467
def dont_spend_outputs(n, txid):
468468
"""Reserve both outputs (we assume there are two!) in case any our ours, so we don't spend change: wrecks accounting checks"""
@@ -1047,7 +1047,7 @@ def test_cli(node_factory):
10471047
assert [l for l in lines if not re.search(r'^help\[[0-9]*\].', l)] == ['format-hint=simple']
10481048

10491049

1050-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd integration test job control fails here")
1050+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd integration test job control fails here")
10511051
def test_daemon_option(node_factory):
10521052
"""
10531053
Make sure --daemon at least vaguely works!
@@ -1082,7 +1082,7 @@ def test_daemon_option(node_factory):
10821082

10831083
@flaky
10841084
@pytest.mark.developer("needs DEVELOPER=1")
1085-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't have repeatable random seeding")
1085+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't have repeatable random seeding")
10861086
def test_blockchaintrack(node_factory, bitcoind):
10871087
"""Check that we track the blockchain correctly across reorgs
10881088
"""
@@ -1526,7 +1526,7 @@ def check_new_log():
15261526

15271527
@unittest.skipIf(VALGRIND,
15281528
"Valgrind sometimes fails assert on injected SEGV")
1529-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "temporary, until fedora-34 gets crashlog libs fixed")
1529+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "temporary, until fedora-34 gets crashlog libs fixed")
15301530
def test_crashlog(node_factory):
15311531
l1 = node_factory.get_node(may_fail=True, allow_broken_log=True)
15321532

@@ -1760,7 +1760,7 @@ def mock_fail(*args):
17601760

17611761
@pytest.mark.developer("needs --dev-force-bip32-seed")
17621762
@unittest.skipIf(TEST_NETWORK != 'regtest', "Addresses are network specific")
1763-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support forced secrets")
1763+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support forced secrets")
17641764
def test_dev_force_bip32_seed(node_factory):
17651765
l1 = node_factory.get_node(options={'dev-force-bip32-seed': '0000000000000000000000000000000000000000000000000000000000000001'})
17661766
# First is m/0/0/1 ..
@@ -2093,7 +2093,7 @@ def test_regtest_upgrade(node_factory):
20932093

20942094
@unittest.skipIf(VALGRIND, "valgrind files can't be written since we rmdir")
20952095
@unittest.skipIf(TEST_NETWORK != "regtest", "needs bitcoin mainnet")
2096-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't create hsm_secret file")
2096+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't create hsm_secret file")
20972097
def test_new_node_is_mainnet(node_factory):
20982098
"""Test that an empty directory causes us to be on mainnet"""
20992099
l1 = node_factory.get_node(start=False, may_fail=True)
@@ -2259,7 +2259,7 @@ def test_sendcustommsg(node_factory):
22592259

22602260

22612261
@pytest.mark.developer("needs --dev-force-privkey")
2262-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dev-force-privkey")
2262+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dev-force-privkey")
22632263
def test_getsharedsecret(node_factory):
22642264
"""
22652265
Test getsharedsecret command.

tests/test_opening.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_queryrates(node_factory, bitcoind):
5555
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
5656
@pytest.mark.developer("uses dev-disconnect")
5757
@pytest.mark.openchannel('v1') # Mixed v1 + v2, v2 manually turned on
58-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
58+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
5959
def test_multifunding_v2_best_effort(node_factory, bitcoind):
6060
'''
6161
Check that best_effort flag works.
@@ -141,7 +141,7 @@ def get_funded_channel_scid(n1, n2):
141141
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
142142
@pytest.mark.developer("uses dev-disconnect")
143143
@pytest.mark.openchannel('v2')
144-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
144+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
145145
def test_v2_open_sigs_restart(node_factory, bitcoind):
146146
disconnects_1 = ['-WIRE_TX_SIGNATURES']
147147
disconnects_2 = ['+WIRE_TX_SIGNATURES']
@@ -187,7 +187,7 @@ def test_v2_open_sigs_restart(node_factory, bitcoind):
187187
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
188188
@pytest.mark.developer("uses dev-disconnect")
189189
@pytest.mark.openchannel('v2')
190-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
190+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
191191
def test_v2_open_sigs_restart_while_dead(node_factory, bitcoind):
192192
# Same thing as above, except the transaction mines
193193
# while we're asleep
@@ -511,7 +511,7 @@ def test_v2_rbf_multi(node_factory, bitcoind, chainparams):
511511
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
512512
@pytest.mark.developer("uses dev-disconnect")
513513
@pytest.mark.openchannel('v2')
514-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
514+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
515515
def test_rbf_reconnect_init(node_factory, bitcoind, chainparams):
516516
disconnects = ['-WIRE_INIT_RBF',
517517
'@WIRE_INIT_RBF',
@@ -563,7 +563,7 @@ def test_rbf_reconnect_init(node_factory, bitcoind, chainparams):
563563
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
564564
@pytest.mark.developer("uses dev-disconnect")
565565
@pytest.mark.openchannel('v2')
566-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
566+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
567567
def test_rbf_reconnect_ack(node_factory, bitcoind, chainparams):
568568
disconnects = ['-WIRE_ACK_RBF',
569569
'@WIRE_ACK_RBF',
@@ -615,7 +615,7 @@ def test_rbf_reconnect_ack(node_factory, bitcoind, chainparams):
615615
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
616616
@pytest.mark.developer("uses dev-disconnect")
617617
@pytest.mark.openchannel('v2')
618-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
618+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
619619
def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
620620
disconnects = ['=WIRE_TX_ADD_INPUT', # Initial funding succeeds
621621
'-WIRE_TX_ADD_INPUT',
@@ -683,7 +683,7 @@ def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
683683
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
684684
@pytest.mark.developer("uses dev-disconnect")
685685
@pytest.mark.openchannel('v2')
686-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
686+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
687687
def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
688688
disconnects = ['=WIRE_TX_SIGNATURES', # Initial funding succeeds
689689
'-WIRE_TX_SIGNATURES', # When we send tx-sigs, RBF
@@ -825,7 +825,7 @@ def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
825825

826826
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
827827
@pytest.mark.openchannel('v2')
828-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
828+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
829829
def test_rbf_no_overlap(node_factory, bitcoind, chainparams):
830830
l1, l2 = node_factory.get_nodes(2,
831831
opts={'allow_warning': True})
@@ -1181,7 +1181,7 @@ def test_funder_options(node_factory, bitcoind):
11811181

11821182

11831183
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
1184-
@unittest.skipIf(os.getenv('SUBDAEMON') == 'hsmd:remote_hsmd', "remote_hsmd doesn't support dual-funding yet")
1184+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dual-funding yet")
11851185
def test_funder_contribution_limits(node_factory, bitcoind):
11861186
opts = {'experimental-dual-fund': None,
11871187
'feerates': (5000, 5000, 5000, 5000)}

0 commit comments

Comments
 (0)