Skip to content

Commit 1d15fed

Browse files
committed
Make mismatched FIFO pid much easier to investigate
1 parent 9adddfc commit 1d15fed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py

+5
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,11 @@ def write_to_app_pipe(self, command_dict: dict, app_pipe_name: Optional[str] = N
10791079
dut_ip = os.getenv('LINUX_DUT_IP')
10801080

10811081
if dut_ip is None:
1082+
if not os.path.exists(app_pipe_name):
1083+
# Named pipes are unique, so we MUST have consistent PID/paths
1084+
# set up for them to work.
1085+
logging.error("Named pipe %r does NOT exist" % app_pipe_name)
1086+
raise FileNotFoundError("CANNOT FIND %r" % app_pipe_name)
10821087
with open(app_pipe_name, "w") as app_pipe:
10831088
app_pipe.write(command + "\n")
10841089
# TODO(#31239): remove the need for sleep

0 commit comments

Comments
 (0)