Marchio: allineamento fine della rinomina (A)
Le righe che differivano dalla rinomina di aKode solo per codex/akode (header e user agent codex_cli_rs -> akode_cli_rs, nomi di file, testi di test) sono riportate come in aKode 0.9.2; dove la mappa automatica aveva rinominato troppo (stringhe di protocollo, residenza) e' ripristinato il testo originale. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -774,17 +774,17 @@ mod tests {
|
||||
// Unlocked foreign directories model a live peer whose lock is invisible
|
||||
// to this kernel. Only stale directories in our own namespace may go.
|
||||
for root in [&own_root, &foreign_root, &legacy_root] {
|
||||
let stale = root.join("codex-arg0-existing");
|
||||
let stale = root.join("akode-arg0-existing");
|
||||
fs::create_dir_all(&stale)?;
|
||||
create_lock(&stale)?;
|
||||
fs::write(stale.join("helper"), b"keep foreign helpers")?;
|
||||
}
|
||||
|
||||
let (guard, _) = super::prepare_aliases_in_home(home.path(), /*existing_path*/ None)?;
|
||||
assert!(!own_root.join("codex-arg0-existing").exists());
|
||||
assert!(!own_root.join("akode-arg0-existing").exists());
|
||||
assert_eq!(
|
||||
[&foreign_root, &legacy_root]
|
||||
.map(|root| fs::read(root.join("codex-arg0-existing/helper")))
|
||||
.map(|root| fs::read(root.join("akode-arg0-existing/helper")))
|
||||
.into_iter()
|
||||
.collect::<std::io::Result<Vec<_>>>()?,
|
||||
vec![b"keep foreign helpers".to_vec(); 2],
|
||||
@@ -800,7 +800,7 @@ mod tests {
|
||||
});
|
||||
assert!(helper.is_file());
|
||||
assert_eq!(
|
||||
fs::read(foreign_root.join("codex-arg0-existing/helper"))?,
|
||||
fs::read(foreign_root.join("akode-arg0-existing/helper"))?,
|
||||
b"keep foreign helpers",
|
||||
);
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user