From 8d508d26a681ec02ddcc20f4e8c8c117330b6789 Mon Sep 17 00:00:00 2001 From: Aryan Singh Date: Sun, 13 Sep 2026 00:23:03 -0500 Subject: [PATCH] testing --- MP1/generate_log.py | 4 ++-- MP1/test.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MP1/generate_log.py b/MP1/generate_log.py index 512e445..db0571e 100644 --- a/MP1/generate_log.py +++ b/MP1/generate_log.py @@ -27,8 +27,8 @@ for i in range(num_lines): #on all if i == 0: log_entry = f"[{machine_num}-{i}] [INFO] TEST_ALL\n" - #unique - elif i == 1: + #unique + elif i == 1 and machine_num == [2, 4, 6, 8, 10]: log_entry = f"[{machine_num}-{i}] [DEBUG] TEST_UNIQUE\n" #on some elif i == 2 and machine_num in [1, 3, 5, 7, 9]: diff --git a/MP1/test.py b/MP1/test.py index a8874c5..d8d440a 100644 --- a/MP1/test.py +++ b/MP1/test.py @@ -35,6 +35,6 @@ for i, ip in enumerate(ALL_IPS): # print(f"Machine {machine_num} grep result:\n{result.stdout}") #delete log files on all the machines after running this test -# print("Deleting log files on all machines...") -# for i, ip in enumerate(ALL_IPS): -# subprocess.run(["vpn", "ssh", f"asing271@{ip}", "cd ~/fa26_cs425_.group-mp_.team-01/MP1 && rm -f ./machine.*.test.log"]) +print("Deleting log files on all machines...") +for i, ip in enumerate(ALL_IPS): + subprocess.run(["vpn", "ssh", f"asing271@{ip}", "cd ~/fa26_cs425_.group-mp_.team-01/MP1 && rm -f ./machine.*.test.log"])