@@ -392,7 +392,7 @@ def test_disconnect_fundee(node_factory):
392392@pytest .mark .developer
393393@pytest .mark .openchannel ('v2' )
394394@unittest .skipIf (os .getenv ('SUBDAEMON' , 'xxx' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
395- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
395+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
396396def test_disconnect_fundee_v2 (node_factory ):
397397 # Now error on fundee side during channel open, with them funding
398398 disconnects = ['-WIRE_ACCEPT_CHANNEL2' ,
@@ -595,7 +595,7 @@ def test_reconnect_no_update(node_factory, executor, bitcoind):
595595 l1 .daemon .wait_for_log (r"CLOSINGD_COMPLETE" )
596596
597597
598- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't like hsm_secret shenanigans" )
598+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't like hsm_secret shenanigans" )
599599def test_connect_stresstest (node_factory , executor ):
600600 # This test is unreliable, but it's better than nothing.
601601 l1 , l2 , l3 = node_factory .get_nodes (3 , opts = {'may_reconnect' : True })
@@ -1044,7 +1044,7 @@ def test_funding_toolarge(node_factory, bitcoind):
10441044
10451045@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
10461046@pytest .mark .openchannel ('v2' )
1047- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
1047+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
10481048def test_v2_open (node_factory , bitcoind , chainparams ):
10491049 l1 , l2 = node_factory .get_nodes (2 )
10501050
@@ -1501,7 +1501,7 @@ def test_funding_v2_cancel_race(node_factory, bitcoind, executor):
15011501@pytest .mark .openchannel ('v1' )
15021502@pytest .mark .openchannel ('v2' )
15031503@unittest .skipIf (TEST_NETWORK != 'regtest' , "External wallet support doesn't work with elements yet." )
1504- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd can't handle random external addresses (allowlist)" )
1504+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd can't handle random external addresses (allowlist)" )
15051505def test_funding_close_upfront (node_factory , bitcoind ):
15061506 opts = {'plugin' : os .path .join (os .getcwd (), 'tests/plugins/openchannel_hook_accepter.py' )}
15071507
@@ -1644,7 +1644,7 @@ def test_funding_external_wallet(node_factory, bitcoind):
16441644
16451645@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
16461646@pytest .mark .openchannel ('v1' ) # We manually turn on dual-funding for select nodes
1647- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
1647+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
16481648def test_multifunding_v1_v2_mixed (node_factory , bitcoind ):
16491649 '''
16501650 Simple test for multifundchannel, using v1 + v2
@@ -1686,7 +1686,7 @@ def test_multifunding_v1_v2_mixed(node_factory, bitcoind):
16861686
16871687@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
16881688@pytest .mark .openchannel ('v2' )
1689- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
1689+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
16901690def test_multifunding_v2_exclusive (node_factory , bitcoind ):
16911691 '''
16921692 Simple test for multifundchannel, using v2
@@ -2634,7 +2634,7 @@ def mock_sendrawtransaction(r):
26342634
26352635
26362636@pytest .mark .developer ("needs dev_fail" )
2637- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "policy: can't withdraw to non-wallet address" )
2637+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "policy: can't withdraw to non-wallet address" )
26382638def test_no_fee_estimate (node_factory , bitcoind , executor ):
26392639 l1 = node_factory .get_node (start = False , options = {'dev-no-fake-fees' : True })
26402640
@@ -3093,7 +3093,7 @@ def test_fail_unconfirmed(node_factory, bitcoind, executor):
30933093@pytest .mark .developer ("need dev-disconnect" )
30943094@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd doesnt yet support PSBT features we need' )
30953095@pytest .mark .openchannel ('v2' )
3096- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support dual-funding yet" )
3096+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support dual-funding yet" )
30973097def test_fail_unconfirmed_openchannel2 (node_factory , bitcoind , executor ):
30983098 """Test that if we crash with an unconfirmed connection to a known
30993099 peer, we don't have a dangling peer in db"""
@@ -3382,7 +3382,7 @@ def test_channel_features(node_factory, bitcoind):
33823382
33833383
33843384@pytest .mark .developer ("need dev-force-features" )
3385- @unittest .skipIf (os .getenv ('SUBDAEMON' ) == 'hsmd:remote_hsmd' , "remote_hsmd doesn't support non-option_static_remotekey" )
3385+ @unittest .skipIf (os .getenv ('SUBDAEMON' ). startswith ( 'hsmd:remote_hsmd' ) , "remote_hsmd doesn't support non-option_static_remotekey" )
33863386def test_nonstatic_channel (node_factory , bitcoind ):
33873387 """Smoke test for a channel without option_static_remotekey"""
33883388 l1 , l2 = node_factory .line_graph (2 ,
0 commit comments