From 1d15fed81aee609aa37815b6356e09d41ca53c68 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Sat, 8 Feb 2025 13:14:38 -0500 Subject: [PATCH] Make mismatched FIFO pid much easier to investigate --- .../chip/testing/matter_testing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py b/src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py index bac18a7d408414..567d02f03c39df 100644 --- a/src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py +++ b/src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py @@ -1079,6 +1079,11 @@ def write_to_app_pipe(self, command_dict: dict, app_pipe_name: Optional[str] = N dut_ip = os.getenv('LINUX_DUT_IP') if dut_ip is None: + if not os.path.exists(app_pipe_name): + # Named pipes are unique, so we MUST have consistent PID/paths + # set up for them to work. + logging.error("Named pipe %r does NOT exist" % app_pipe_name) + raise FileNotFoundError("CANNOT FIND %r" % app_pipe_name) with open(app_pipe_name, "w") as app_pipe: app_pipe.write(command + "\n") # TODO(#31239): remove the need for sleep