fix(tests): Append trailing newline to JSON test outputs

JSON test files generated by the agent test runner were missing trailing newlines, causing the pre-commit end-of-file-fixer hook to fail. Added an explicit newline write on serialization.

Change-Id: Idaffc4f2c23fa213f595ddef2188b0050aeb431d
This commit is contained in:
Shangjie Chen
2026-05-19 16:27:47 -07:00
parent 6d7bab6897
commit 3329ced0b9
7 changed files with 7 additions and 6 deletions
@@ -193,4 +193,4 @@
}
}
]
}
}
@@ -125,4 +125,4 @@
}
}
]
}
}
@@ -126,4 +126,4 @@
}
}
]
}
}
@@ -136,4 +136,4 @@
}
}
]
}
}
@@ -101,4 +101,4 @@
}
}
]
}
}
@@ -104,4 +104,4 @@
}
}
]
}
}
+1
View File
@@ -881,6 +881,7 @@ def rebuild_tests(path: str):
# Write back to file
with open(test_file, "w") as f:
json.dump(session_data, f, indent=2, sort_keys=True)
f.write("\n")
print(f"Successfully rebuilt {test_file}")