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"])