test.py: daemon start/stop fixes

This commit is contained in:
The MMGen Project 2021-10-08 16:44:56 +00:00
commit 328db384d2
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 3 additions and 2 deletions

View file

@ -287,7 +287,7 @@ class TestSuiteAutosign(TestSuiteBase):
foo = do_autosign(opts,mountpoint,mn_type='bip39',short=True)
ret = do_autosign(opts,mountpoint)
finally:
stop_test_daemons(*network_ids)
stop_test_daemons(*[i for i in network_ids if i != 'btc'])
return ret

View file

@ -110,7 +110,7 @@ class TestSuiteRefAltcoin(TestSuiteRef,TestSuiteBase):
extra_desc = f'{proto.coin}{token_desc} {proto.network}')
t.read()
t.ok()
if proto.sign_mode == 'daemon':
if proto.sign_mode == 'daemon' and not proto.network_id == 'btc':
stop_test_daemons(proto.network_id)
return 'ok'

View file

@ -297,6 +297,7 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
end_silence()
def setup(self):
stop_test_daemons(self.proto.network_id)
try: shutil.rmtree(joinpath(self.tr.data_dir,'regtest'))
except: pass
t = self.spawn('mmgen-regtest',['-n','setup'])