minor fix

This commit is contained in:
Aryan Singh committed 2026-09-13 00:32:49 -05:00
1 parent 8d508d26a6
commit e9f858ab7c
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ for i in range(num_lines):
if i == 0: if i == 0:
log_entry = f"[{machine_num}-{i}] [INFO] TEST_ALL\n" log_entry = f"[{machine_num}-{i}] [INFO] TEST_ALL\n"
#unique #unique
elif i == 1 and machine_num == [2, 4, 6, 8, 10]: elif i == 1 and machine_num in [2, 4, 6, 8, 10]:
log_entry = f"[{machine_num}-{i}] [DEBUG] TEST_UNIQUE\n" log_entry = f"[{machine_num}-{i}] [DEBUG] TEST_UNIQUE\n"
#on some #on some
elif i == 2 and machine_num in [1, 3, 5, 7, 9]: elif i == 2 and machine_num in [1, 3, 5, 7, 9]:
+3 -3
View File
@@ -35,6 +35,6 @@ for i, ip in enumerate(ALL_IPS):
# print(f"Machine {machine_num} grep result:\n{result.stdout}") # print(f"Machine {machine_num} grep result:\n{result.stdout}")
#delete log files on all the machines after running this test #delete log files on all the machines after running this test
print("Deleting log files on all machines...") # print("Deleting log files on all machines...")
for i, ip in enumerate(ALL_IPS): # 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"]) # subprocess.run(["vpn", "ssh", f"asing271@{ip}", "cd ~/fa26_cs425_.group-mp_.team-01/MP1 && rm -f ./machine.*.test.log"])