mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-22 19:49:20 +00:00
namecoin pidfile name and workaround for ci prepare.
This commit is contained in:
parent
545b5e6975
commit
8731c9796a
2 changed files with 4 additions and 2 deletions
|
@ -443,7 +443,9 @@ class BasicSwap():
|
|||
chain_client_settings = self.getChainClientSettings(coin)
|
||||
authcookiepath = os.path.join(self.getChainDatadirPath(coin), '.cookie')
|
||||
|
||||
pidfilename = cc['name'] + ('d' if cc['name'] == 'bitcoin' else '')
|
||||
pidfilename = cc['name']
|
||||
if cc['name'] == 'bitcoin' or cc['name'] == 'namecoin':
|
||||
pidfilename += 'd'
|
||||
pidfilepath = os.path.join(self.getChainDatadirPath(coin), pidfilename + '.pid')
|
||||
self.log.debug('Reading %s rpc credentials from auth cookie %s', coin, authcookiepath)
|
||||
# Wait for daemon to start
|
||||
|
|
|
@ -33,7 +33,7 @@ class Test(unittest.TestCase):
|
|||
super(Test, self).tearDownClass()
|
||||
|
||||
def test(self):
|
||||
testargs = ['basicswap-prepare', '-datadir=' + test_path]
|
||||
testargs = ['basicswap-prepare', '-datadir=' + test_path, '-particl_mnemonic=none'] # Why won't the daemon run in travis-ci?
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
prepareSystem.main()
|
||||
|
||||
|
|
Loading…
Reference in a new issue