Browse Source

tests: fix forknotify.py on windows

Windows interprets 'foo.txt' as a literal filename while "foo.txt" is treated
as expected.
tags/v0.15.1
Cory Fields 7 years ago
parent
commit
5122ea7190
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      qa/rpc-tests/forknotify.py

+ 1
- 1
qa/rpc-tests/forknotify.py View File

@@ -23,7 +23,7 @@ class ForkNotifyTest(BitcoinTestFramework):
with open(self.alert_filename, 'w') as f:
pass # Just open then close to create zero-length file
self.nodes.append(start_node(0, self.options.tmpdir,
["-blockversion=2", "-alertnotify=echo %s >> '" + self.alert_filename + "'"]))
["-blockversion=2", "-alertnotify=echo %s >> \"" + self.alert_filename + "\""]))
# Node1 mines block.version=211 blocks
self.nodes.append(start_node(1, self.options.tmpdir,
["-blockversion=211"]))

Loading…
Cancel
Save