@@ -422,6 +422,7 @@ async fn run_batch(
422422 } )
423423}
424424
425+ #[ allow( clippy:: too_many_arguments) ]
425426async fn run_single_task (
426427 config : & Config ,
427428 task : & SweForgeTask ,
@@ -817,14 +818,12 @@ async fn run_task_on_basilica(
817818 result. status = TaskStatus :: InstallingDeps ;
818819
819820 // Install base build tools + ensure python/pip/pytest are on PATH
820- let base_tools = format ! (
821- "sudo apt-get update -qq && \
821+ let base_tools = "sudo apt-get update -qq && \
822822 sudo apt-get install -y -qq git curl build-essential python3 python3-pip python3-venv unzip > /dev/null 2>&1 && \
823823 sudo ln -sf /usr/bin/python3 /usr/local/bin/python 2>/dev/null; \
824824 sudo ln -sf /usr/bin/pip3 /usr/local/bin/pip 2>/dev/null; \
825825 sudo pip3 install pytest > /dev/null 2>&1 || sudo pip3 install --break-system-packages pytest > /dev/null 2>&1; \
826- hash -r 2>/dev/null; true"
827- ) ;
826+ hash -r 2>/dev/null; true". to_string ( ) ;
828827 let ( _, _, exit) = ssh_exec ( host, port, user, & base_tools, timeout, ssh_key) . await ?;
829828 if exit != 0 {
830829 warn ! ( "[{}] Base tools install failed (exit {})" , task. id, exit) ;
@@ -1012,7 +1011,7 @@ async fn run_task_on_basilica(
10121011
10131012 // Write test source files
10141013 for ( name, content) in & task. test_source_files {
1015- let escaped_content = content. replace ( '\'' , "'\\ ''" ) ;
1014+ let _escaped_content = content. replace ( '\'' , "'\\ ''" ) ;
10161015 let remote_path = format ! ( "{work_dir}/repo/{name}" ) ;
10171016 ssh_exec (
10181017 host, port, user,
@@ -1025,7 +1024,7 @@ async fn run_task_on_basilica(
10251024 let mut test_results: Vec < TaskTestResult > = Vec :: new ( ) ;
10261025 for ( name, content) in & task. test_scripts {
10271026 let remote_script = format ! ( "{work_dir}/repo/{name}" ) ;
1028- let escaped = content. replace ( '\'' , "'\\ ''" ) ;
1027+ let _escaped = content. replace ( '\'' , "'\\ ''" ) ;
10291028 ssh_exec (
10301029 host, port, user,
10311030 & format ! ( "mkdir -p $(dirname '{remote_script}') && cat > '{remote_script}' << 'SCRIPTEOF'\n {content}\n SCRIPTEOF\n chmod +x '{remote_script}'" ) ,
0 commit comments