mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-12 15:53:44 +00:00
fix(capture): replay keeps its records, skips RakNet's own messages and waits for transfers
- the expected answers pointed into a copy of the records that was gone by the diff - the client's recorded connect and disconnect messages are RakNet's, not sent again - a recorded move to another world is waited for as long as a zone takes to start - the handshake sends the client net version; reports are written after every bundle - a crash or Ctrl-C of the tool stops the sandbox stack too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -254,6 +254,9 @@ namespace {
|
||||
entry["sandbox"] = stack->Dir().string();
|
||||
report.push_back(entry);
|
||||
PrintResult(fs::path(path).filename().string(), result);
|
||||
// Written after every bundle, so a long run's results survive it being stopped
|
||||
if (!Arg(args, "--report").empty()) std::ofstream(Arg(args, "--report")) << report.dump(1);
|
||||
std::cout.flush();
|
||||
const bool failed = !result.stoppedAt.empty();
|
||||
if (failed) failures++;
|
||||
if (options.keep || (failed && Flag(args, "--keep-on-failure"))) {
|
||||
|
||||
Reference in New Issue
Block a user