mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pytest: Actually make sure that the direcory exists
Some tests may not spawn a node at all, so make sure that our assumption that the directory exists in the fixture cleanup is correct by creating the directory.
This commit is contained in:
committed by
Rusty Russell
parent
751df868c7
commit
24aaf73982
@@ -30,7 +30,6 @@ pubkeys = [
|
||||
def test_onion(directory, oniontool):
|
||||
""" Generate a 5 hop onion and then decode it.
|
||||
"""
|
||||
os.makedirs(directory)
|
||||
tempfile = os.path.join(directory, 'onion')
|
||||
out = subprocess.check_output(
|
||||
[oniontool, 'generate'] + pubkeys
|
||||
@@ -53,7 +52,6 @@ def test_onion(directory, oniontool):
|
||||
def test_rendezvous_onion(directory, oniontool):
|
||||
"""Create a compressed onion, decompress it at the RV node and then forward normally.
|
||||
"""
|
||||
os.makedirs(directory)
|
||||
tempfile = os.path.join(directory, 'onion')
|
||||
out = subprocess.check_output(
|
||||
[oniontool, '--rendezvous-id', pubkeys[0], 'generate'] + pubkeys
|
||||
|
||||
Reference in New Issue
Block a user