From 895927fbad875776f9d90af160d037dbc18ad26c Mon Sep 17 00:00:00 2001 From: TapTap Date: Sun, 5 Jul 2026 18:44:36 +0200 Subject: [PATCH] test: include stdout in rsync error output --- test.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index bbd8578..654c3b6 100755 --- a/test.py +++ b/test.py @@ -344,8 +344,15 @@ path = {source_dir} entry["status"] = "Failed" errors = [] if rsync_result.returncode != 0: - err = rsync_result.stderr.strip().split("\n")[0] if rsync_result.stderr else "No output" - errors.append(f"Exit code {rsync_result.returncode}: {err[:80]}") + errs = [] + if rsync_result.stderr: + errs.append(rsync_result.stderr.strip().split("\n")[0]) + if rsync_result.stdout: + errs.append(rsync_result.stdout.strip().split("\n")[0]) + if not errs: + errs.append("No output") + err = " | ".join(errs) + errors.append(f"Exit code {rsync_result.returncode}: {err[:150]}") if missing: errors.append(f"Missing ({len(missing)}): {', '.join(missing[:5])}") if mismatches: