summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2021-01-21 10:23:42 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2021-01-21 10:23:42 -0600
commit5ae4c8cade9c3a152a9d153d28a8090c77827021 (patch)
treeb72c1c07f3cb22978d9762d7c72a90fd2af3f0c4
parent2a4389feca445a89dd54cbab5954569d993c346b (diff)
downloadcouchdb-devnode-boot-script.tar.gz
Add formatting suggestions from python-blackdevnode-boot-script
-rwxr-xr-xdev/run6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/run b/dev/run
index 476ec3682..7af718afa 100755
--- a/dev/run
+++ b/dev/run
@@ -190,7 +190,7 @@ def get_args_parser():
"--erlang-config",
dest="erlang_config",
default="rel/files/sys.config",
- help="Specify an alternative Erlang application configuration"
+ help="Specify an alternative Erlang application configuration",
)
parser.add_option(
"--degrade-cluster",
@@ -275,6 +275,7 @@ def check_beams(ctx):
for fname in glob.glob(os.path.join(ctx["devdir"], "*.erl")):
sp.check_call(["erlc", "-o", ctx["devdir"] + os.sep, fname])
+
@log("Ensure Erlang boot script exists")
def check_boot_script(ctx):
if not os.path.exists(os.path.join(ctx["devdir"], "devnode.boot")):
@@ -282,6 +283,7 @@ def check_boot_script(ctx):
env["ERL_LIBS"] = os.path.join(ctx["rootdir"], "src")
sp.check_call(["escript", "make_boot_script"], env=env, cwd=ctx["devdir"])
+
@log("Prepare configuration files")
def setup_configs(ctx):
for idx, node in enumerate(ctx["nodes"]):
@@ -631,7 +633,7 @@ def boot_node(ctx, node):
os.path.join(ctx["devdir"], "devnode"),
"-pa",
ctx["devdir"],
- "-s monitor_parent"
+ "-s monitor_parent",
]
if ctx["reset_logs"]:
mode = "wb"