You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2021/04/19 19:33:59 UTC

[couchdb] branch 3.x-show-test-results-python3-port created (now a0d7fde)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch 3.x-show-test-results-python3-port
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at a0d7fde  Switch show-test-results.py to use python 3

This branch includes the following new commits:

     new a0d7fde  Switch show-test-results.py to use python 3

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb] 01/01: Switch show-test-results.py to use python 3

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 3.x-show-test-results-python3-port
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a0d7fdebcc083a2a74577fe367d30bdb0bf63ad1
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Mon Apr 19 13:01:56 2021 -0400

    Switch show-test-results.py to use python 3
---
 build-aux/show-test-results.py | 70 +++++++++++++++++++++---------------------
 1 file changed, 35 insertions(+), 35 deletions(-)

diff --git a/build-aux/show-test-results.py b/build-aux/show-test-results.py
index c76a884..edd6ca1 100755
--- a/build-aux/show-test-results.py
+++ b/build-aux/show-test-results.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python3
 
 import argparse
 import glob
@@ -198,15 +198,15 @@ def display_failures(collections):
 
     if not len(failures):
         return
-    print "Failures"
-    print "========"
-    print
+    print("Failures")
+    print("========")
+    print()
     for failure in failures:
-        print failure[0]
-        print "-" * len(failure[0])
-        print
-        print failure[1]
-        print
+        print(failure[0])
+        print("-" * len(failure[0]))
+        print()
+        print(failure[1])
+        print()
 
 
 def display_errors(collections):
@@ -220,15 +220,15 @@ def display_errors(collections):
 
     if not len(errors):
         return
-    print "Errors"
-    print "======"
-    print
+    print("Errors")
+    print("======")
+    print()
     for error in errors:
-        print error[0]
-        print "-" * len(error[0])
-        print
-        print error[1]
-        print
+        print(error[0])
+        print("-" * len(error[0]))
+        print()
+        print(error[1])
+        print()
 
 
 def display_skipped(collections):
@@ -242,12 +242,12 @@ def display_skipped(collections):
                 skipped.append((name, test.skipped_msg))
     if not skipped:
         return
-    print "Skipped"
-    print "======="
-    print
+    print("Skipped")
+    print("=======")
+    print()
     for row in sorted(skipped):
-        print "  %s: %s" % row
-    print
+        print("  %s: %s" % row)
+    print()
 
 
 def display_table(table):
@@ -263,7 +263,7 @@ def display_table(table):
         table[ridx] = new_row
     for row in table:
         fmt = " ".join(["%10s"] * len(row))
-        print fmt % tuple(row)
+        print(fmt % tuple(row))
 
 
 def display_collections(collections, sort):
@@ -305,12 +305,12 @@ def display_collections(collections, sort):
 
     rows.sort(key=skey)
 
-    print "Collections"
-    print "==========="
-    print
+    print("Collections")
+    print("===========")
+    print()
     headers = ["Total", "Fixture", "Test", "Count", "Failed", "Errors", "Skipped"]
     display_table([headers] + rows)
-    print
+    print()
 
 
 def display_suites(collections, count, sort):
@@ -342,12 +342,12 @@ def display_suites(collections, count, sort):
 
     rows = rows[:count]
 
-    print "Suites"
-    print "======"
-    print
+    print("Suites")
+    print("======")
+    print()
     headers = ["Total", "Fixture", "Test", "Count", "Failed", "Errors", "Skipped"]
     display_table([headers] + rows)
-    print
+    print()
 
 
 def display_tests(collections, count):
@@ -367,11 +367,11 @@ def display_tests(collections, count):
     rows.sort(key=skey)
     rows = rows[:count]
 
-    print "Tests"
-    print "====="
-    print
+    print("Tests")
+    print("=====")
+    print()
     display_table(rows)
-    print
+    print()
 
 
 def main():