mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-23 03:25:56 +00:00
preview: remove developer test-realm shortcuts before the first public preview
The Modules page had a 'Register test-realm-v03' button and the app registered a hardcoded local folder into an empty server list at startup. Both pointed at a developer's machine. The startup registration now happens only when COA_TEST_REALM_DIR is set. test_detect_toolchain skips when the local spike realm is absent (CI runners). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b65b632c63
commit
6723a7eda1
4 files changed
+9
-69
No files matched your search
@@ -1332,7 +1332,11 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_detect_toolchain() {
|
||||
let tc = detect_toolchain_for(Some(Path::new("C:/games/coa-work/plugin-spike/server-v03")));
|
||||
let realm = Path::new("C:/games/coa-work/plugin-spike/server-v03");
|
||||
if !realm.join("worldserver.exe").is_file() {
|
||||
return; // needs the local spike realm and its SDK (not on CI runners)
|
||||
}
|
||||
let tc = detect_toolchain_for(Some(realm));
|
||||
assert!(tc.msvc_available, "MSVC vcvars64.bat should be detected");
|
||||
assert!(tc.cmake_available, "CMake should be detected");
|
||||
assert!(tc.ninja_available, "Ninja should be detected");
|
||||
|
||||
Reference in new issue
Block a user