[Patchew-devel] [PATCH] patchew-tester: flush stdout after retrieving the patch

Paolo Bonzini posted 1 patch 5 years, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew next tags/patchew/20190124072804.9622-2-pbonzini@redhat.com
patchew-cli | 1 +
1 file changed, 1 insertion(+)
[Patchew-devel] [PATCH] patchew-tester: flush stdout after retrieving the patch
Posted by Paolo Bonzini 5 years, 3 months ago
This shows in the logs what is failing.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 patchew-cli | 1 +
 1 file changed, 1 insertion(+)

diff --git a/patchew-cli b/patchew-cli
index 0d89528..430dbe3 100755
--- a/patchew-cli
+++ b/patchew-cli
@@ -510,6 +510,7 @@ class TesterCommand(SubCommand):
         print("  Workdir:", wd)
         print("  Project:", r["project"])
         print("  Identity:", str(r["identity"]))
+        sys.stdout.flush()
         logf = open(os.path.join(wd, "log"), "w+", encoding="utf-8",
                     newline='', errors="ignore")
         test_cmd = r["test"]["script"]
-- 
2.20.1

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel