Skip to content

Commit

Permalink
Make mismatched FIFO pid much easier to investigate
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Feb 8, 2025
1 parent 9adddfc commit 1d15fed
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d15fed

Please sign in to comment.