Add T6 Zombies fleet support with Plutainer configuration

This commit is contained in:
2026-09-17 18:03:12 -04:00
parent 1350e6df7c
commit 9dcf4ac1d3
28 changed files with 492 additions and 146 deletions
+7 -1
View File
@@ -5,6 +5,7 @@ import { join } from 'node:path';
export interface Fixture {
root: string;
t5: string;
t6: string;
betaArchive: string;
dbPath: string;
cleanup: () => Promise<void>;
@@ -18,16 +19,20 @@ export interface Fixture {
export async function newFixture(servers: string[] = ['t5_zombie_theater_1']): Promise<Fixture> {
const root = await mkdtemp(join(tmpdir(), 'cherry-'));
const t5 = join(root, 't5');
const t6 = join(root, 't6');
const betaArchive = join(root, 'beta-archive');
const dbPath = join(root, 'cherry.db');
await mkdir(t5, { recursive: true });
await mkdir(t6, { recursive: true });
await mkdir(betaArchive, { recursive: true });
for (const s of servers) {
await mkdir(join(t5, s, 'runtime/plutonium/storage/t5/raw/scripts/sp'), { recursive: true });
await mkdir(s.startsWith('t6_') ? join(t6, s, 'runtime/plutonium/storage/t6/scripts/zm')
: join(t5, s, 'runtime/plutonium/storage/t5/raw/scripts/sp'), { recursive: true });
}
process.env.SERVERS_ROOT = t5;
process.env.T6_SERVERS_ROOT = t6;
process.env.REL_DEST = 'runtime/plutonium/storage/t5/raw/scripts/sp';
process.env.BETA_ARCHIVE_DIR = betaArchive;
process.env.DB_PATH = dbPath;
@@ -37,6 +42,7 @@ export async function newFixture(servers: string[] = ['t5_zombie_theater_1']): P
return {
root,
t5,
t6,
betaArchive,
dbPath,
cleanup: async () => {