write the review-classifier fake agent scripts from a child process
This commit is contained in:
parent
c16cf1756f
commit
41f832458e
1 changed files with 31 additions and 11 deletions
|
|
@ -856,12 +856,9 @@ printf '{"type":"result","subtype":"success","is_error":false,"result":"ok"}\n'
|
|||
|
||||
#[tokio::test]
|
||||
async fn claude_reads_the_shared_context_and_the_question_as_separate_blocks() {
|
||||
use std::os::unix::fs::PermissionsExt as _;
|
||||
|
||||
let tmp = tempfile::tempdir().expect("a dir");
|
||||
let script = tmp.path().join("claude.sh");
|
||||
std::fs::write(&script, CLAUDE).expect("written");
|
||||
std::fs::set_permissions(&script, std::fs::Permissions::from_mode(0o755)).expect("chmod");
|
||||
crate::test_script::write_executable(&script, CLAUDE);
|
||||
let claude = Claude {
|
||||
program: PathBuf::from("claude"),
|
||||
trampoline: script.clone(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue