Skip to content

Commit 7b26cb2

Browse files
authored
[release/6.x] Log RC on node startup failure (#7337) (#7340)
1 parent 56560b6 commit 7b26cb2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/infra/remote.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ def get(
130130
break
131131
time.sleep(0.1)
132132
else:
133-
raise ValueError(path)
133+
status = "not started"
134+
if self.proc is not None:
135+
if self.proc.poll() is None:
136+
status = "running"
137+
else:
138+
status = f"stopped (rc: {self.proc.poll()})"
139+
raise ValueError(f"{path} not found after {timeout} seconds, {status}")
134140
if not pre_condition_func(path, os.listdir):
135141
raise RuntimeError("Pre-condition for getting remote files failed")
136142
target_name = target_name or os.path.basename(src_path)

0 commit comments

Comments
 (0)