Skip to content

Commit

Permalink
Merge pull request #111 from rustyrussell/macros/fix-lightningd-check
Browse files Browse the repository at this point in the history
cln: fix the check on the exit code
  • Loading branch information
vincenzopalazzo authored Sep 28, 2023
2 parents 3645397 + 32ef6bf commit a8d4dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnprototest/clightning/clightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, config: Any):
self.startup_flags.append("--{}".format(flag))

# Does it support (i.e. require!) --developer?
ret = subprocess.run(
ret = subprocess.Popen(
[
"{}/lightningd/lightningd".format(LIGHTNING_SRC),
"--developer",
Expand All @@ -80,7 +80,7 @@ def __init__(self, config: Any):
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)
if ret.returncode == 0:
if ret.returncode != 0:
self.startup_flags.append("--developer")

opts = (
Expand Down

0 comments on commit a8d4dcf

Please sign in to comment.