mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 11:25:56 +00:00
Test: compare the Playerbot Characters mount with the canonical server folder
The Windows runner's temporary folder is a short path, so the test failed there. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
88ccce8280
commit
2d7a392df9
1 file changed
+7
-1
@@ -1099,7 +1099,13 @@ mod tests {
|
|||||||
"database, then world, then auth"
|
"database, then world, then auth"
|
||||||
);
|
);
|
||||||
let calls = sim.calls_of("run");
|
let calls = sim.calls_of("run");
|
||||||
let mount = format!("{}:/srv/Extras/PlayerbotCharacters:ro", assets.display());
|
// The containers get the canonical server folder; a temporary folder may be a short or linked path.
|
||||||
|
let host = std::fs::canonicalize(&root).unwrap();
|
||||||
|
let host = crate::fsx::canonicalize_lenient(&host).unwrap_or(host);
|
||||||
|
let mount = format!(
|
||||||
|
"{}:/srv/Extras/PlayerbotCharacters:ro",
|
||||||
|
host.join(crate::modules::pbc::ASSET_DIR).display()
|
||||||
|
);
|
||||||
assert!(calls[1].args.windows(2).any(|w| w == ["--volume", mount.as_str()]));
|
assert!(calls[1].args.windows(2).any(|w| w == ["--volume", mount.as_str()]));
|
||||||
assert!(!calls[0].args.contains(&mount) && !calls[2].args.contains(&mount));
|
assert!(!calls[0].args.contains(&mount) && !calls[2].args.contains(&mount));
|
||||||
let exec = sim.calls_of("exec");
|
let exec = sim.calls_of("exec");
|
||||||
|
|||||||
Reference in new issue
Block a user