From 18ca01ed6bda955c762b9585f29004d1615d0764 Mon Sep 17 00:00:00 2001 From: Aryan Singh Date: Sat, 12 Sep 2026 23:38:36 -0500 Subject: [PATCH] Update client.py --- MP1/client.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MP1/client.py b/MP1/client.py index c1a6a3f..1c5f14a 100644 --- a/MP1/client.py +++ b/MP1/client.py @@ -79,8 +79,14 @@ match_count = grep_all_ips(ALL_IPS, cmd, if_unit_test=[x for x in sys.argv].coun print("=========================== SUMMARY ===========================") for i, count in enumerate(match_count): if count == -1: - print(f"machine.{i + 1}.log: Connection failed") + if [x for x in sys.argv].count("-t") > 0: + print(f"machine.{i + 1}.test.log: Connection failed") + else: + print(f"machine.{i + 1}.log: Connection failed") else: - print(f"machine.{i + 1}.log: {count} matches") + if [x for x in sys.argv].count("-t") > 0: + print(f"machine.{i + 1}.test.log: {count} matches") + else: + print(f"machine.{i + 1}.log: {count} matches") print(f"Total matches: {max(0, sum(match_count))}") print("===============================================================") \ No newline at end of file