All broken
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 20s

This commit is contained in:
Your Name
2025-05-10 19:40:38 +12:00
parent dbcef96bc2
commit 5d42db7331
3 changed files with 15 additions and 13 deletions

View File

@ -772,8 +772,8 @@ std::string service_runner::get_latest_backup_file(const std::string& server, co
bool service_runner::rsync_copy(const std::string& local_path, const std::string& remote_path, bool silent) {
std::cout << "Copying: [LOCAL] " << local_path << std::endl << std::string(8,' ')<<"[REMOTE] " << remote_path << std::endl;
runner::runner_local rsync_runner("rsync", {"--delete","--mkpath","-zrpc","-e",quote("ssh -p " + mServerEnv.get_SSH_PORT()),local_path,
mServerEnv.get_SSH_USER()+"@"+mServerEnv.get_SSH_HOST()+":"+remote_path}, "", {}, true);
runner::runner_local rsync_runner("rsync", {"--delete","--mkpath","-zrpc","-e",quote("ssh -p " + mServerEnv.get_SSH_PORT()),quote(local_path),
quote(mServerEnv.get_SSH_USER()+"@"+mServerEnv.get_SSH_HOST()+":"+remote_path)});
if (!rsync_runner.execute()) {
std::cerr << "Failed to copy files using rsync" << std::endl;

View File

@ -112,6 +112,12 @@ bool runner_local::execute() {
close(fd);
}
}
std::cout << "Executing command: " << mCommand << std::endl;
std::cout << "Args: ";
for (auto& arg : mArgs) std::cout << "[" << arg << "] ";
std::cout << std::endl;
execvp(mCommand.c_str(), argv.data());
perror("execvp");
exit(127);