Add command to extract play time from save

Add command that extracts play time (and players) from the currently
running save to the recorded instance statistics.  This is useful for
getting correct play time statistics when an existing save game is
imported.
This commit is contained in:
Hornwitser committed 2022-07-13 00:31:02 +02:00
1 parent 0245ccd16c
commit 08e7434d24
8 files changed
+86 -3

No files matched your search

+7
View File
@@ -524,6 +524,13 @@ describe("Integration of Clusterio", function() {
});
});
describe("instance extract-players", function() {
it("runs", async function() {
slowTest(this);
await execCtl("instance extract-players test");
});
});
describe("instance stop", function() {
it("stops the instance", async function() {
slowTest(this);