[LNT] r199272 - Fixup lnt submit --verbose to print results

Chris Matthews cmatthews5 at apple.com
Tue Jan 14 15:25:05 PST 2014


Author: cmatthews
Date: Tue Jan 14 17:25:05 2014
New Revision: 199272

URL: http://llvm.org/viewvc/llvm-project?rev=199272&view=rev
Log:
Fixup lnt submit --verbose to print results

In a previous refactoring responsibility for printing during submission was moved to the callers.  This patch fixes "lnt submit" to correctly print its results based on the verbose flag.

Modified:
    lnt/trunk/lnt/lnttool/main.py

Modified: lnt/trunk/lnt/lnttool/main.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/lnttool/main.py?rev=199272&r1=199271&r2=199272&view=diff
==============================================================================
--- lnt/trunk/lnt/lnttool/main.py (original)
+++ lnt/trunk/lnt/lnttool/main.py Tue Jan 14 17:25:05 2014
@@ -192,7 +192,12 @@ def action_submit(name, args):
                 " at the server.")
 
     from lnt.util import ServerUtil
-    ServerUtil.submitFiles(args[0], args[1:], opts.commit, opts.verbose)
+    files = ServerUtil.submitFiles(args[0], args[1:],
+                                   opts.commit, opts.verbose)
+    if opts.verbose:
+        for f in files:
+            lnt.util.ImportData.print_report_result(f, sys.stdout,
+                                                    sys.stderr, True)
 
 def action_update(name, args):
     """create and or auto-update the given database"""





More information about the llvm-commits mailing list