Browse Source

pytest: don't assume paths of valgrind and bitcoind.

In particular, my bitcoind is in /usr/local/bin

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
1575181ef5
  1. 2
      tests/test_lightningd.py
  2. 2
      tests/utils.py

2
tests/test_lightningd.py

@ -73,7 +73,7 @@ class NodeFactory(object):
self.nodes.append(node) self.nodes.append(node)
if VALGRIND: if VALGRIND:
node.daemon.cmd_line = [ node.daemon.cmd_line = [
'/usr/bin/valgrind', 'valgrind',
'-q', '-q',
'--error-exitcode=7', '--error-exitcode=7',
'--log-file={}/valgrind-errors'.format(node.daemon.lightning_dir) '--log-file={}/valgrind-errors'.format(node.daemon.lightning_dir)

2
tests/utils.py

@ -133,7 +133,7 @@ class BitcoinD(TailableProc):
os.makedirs(regtestdir) os.makedirs(regtestdir)
self.cmd_line = [ self.cmd_line = [
'/usr/bin/bitcoind', 'bitcoind',
'-datadir={}'.format(bitcoin_dir), '-datadir={}'.format(bitcoin_dir),
'-printtoconsole', '-printtoconsole',
'-server', '-server',

Loading…
Cancel
Save