[tracker/sam/functional-tests-quiet: 18/18] functional-tests: Set test runner verbosity to 2



commit 8be45b49381fbcd911fa7002703503c066f45ab8
Author: Sam Thursfield <sam afuera me uk>
Date:   Sat Sep 14 10:59:06 2019 +0200

    functional-tests: Set test runner verbosity to 2
    
    Tests would previously output progress dots and a summary, like this:
    
        .(tracker-store:5918): GLib-GObject-CRITICAL **: 10:53:10.135: g_object_unref: assertion 'G_IS_OBJECT 
(object)' failed
        ..(tracker-store:5952): GLib-GObject-CRITICAL **: 10:53:10.857: g_object_unref: assertion 
'G_IS_OBJECT (object)' failed
        ..................(tracker-store:5986): GLib-GObject-CRITICAL **: 10:53:13.275: g_object_unref: 
assertion 'G_IS_OBJECT (object)' failed
        ..(tracker-store:6042): GLib-GObject-CRITICAL **: 10:53:13.985: g_object_unref: assertion 
'G_IS_OBJECT (object)' failed
    
        ----------------------------------------------------------------------
        Ran 23 tests in 4.555s
    
        OK
    
    This not very useful when we see error output during the test, as you
    can see in the example.
    
    The test log now contains the name of each test. Errors from Tracker
    daemons now appear like this:
    
        test_batch_insert_01 (__main__.TrackerStoreBatchUpdateTest) ... ok
        (tracker-store:6341): GLib-GObject-CRITICAL **: 10:56:18.859: g_object_unref: assertion 'G_IS_OBJECT 
(object)' failed
        test_delete_01 (__main__.TrackerStoreDeleteTests) ... ok
        test_delete_02 (__main__.TrackerStoreDeleteTests) ... ok
        (tracker-store:6374): GLib-GObject-CRITICAL **: 10:56:19.581: g_object_unref: assertion 'G_IS_OBJECT 
(object)' failed
        test_insert_01 (__main__.TrackerStoreInsertionTests) ... ok
        test_insert_02 (__main__.TrackerStoreInsertionTests) ... ok

 tests/functional-tests/01-insertion.py         | 2 +-
 tests/functional-tests/02-sparql-bugs.py       | 2 +-
 tests/functional-tests/03-fts-functions.py     | 2 +-
 tests/functional-tests/04-group-concat.py      | 2 +-
 tests/functional-tests/05-coalesce.py          | 2 +-
 tests/functional-tests/06-distance.py          | 2 +-
 tests/functional-tests/07-graph.py             | 2 +-
 tests/functional-tests/08-unique-insertions.py | 2 +-
 tests/functional-tests/09-concurrent-query.py  | 2 +-
 tests/functional-tests/14-signals.py           | 2 +-
 tests/functional-tests/15-statistics.py        | 2 +-
 tests/functional-tests/16-collation.py         | 2 +-
 tests/functional-tests/17-ontology-changes.py  | 2 +-
 13 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/tests/functional-tests/01-insertion.py b/tests/functional-tests/01-insertion.py
index 8c8092dd1..8b5b40c80 100644
--- a/tests/functional-tests/01-insertion.py
+++ b/tests/functional-tests/01-insertion.py
@@ -869,4 +869,4 @@ class TrackerStorePhoneNumberTest (CommonTrackerStoreTest):
 
 
 if __name__ == "__main__":
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/02-sparql-bugs.py b/tests/functional-tests/02-sparql-bugs.py
index bf0d8ecbb..e312e9109 100644
--- a/tests/functional-tests/02-sparql-bugs.py
+++ b/tests/functional-tests/02-sparql-bugs.py
@@ -238,4 +238,4 @@ class TrackerStoreSparqlBugsTests (CommonTrackerStoreTest):
 
 
 if __name__ == "__main__":
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/03-fts-functions.py b/tests/functional-tests/03-fts-functions.py
index 0938a7e52..ec23a3ed6 100644
--- a/tests/functional-tests/03-fts-functions.py
+++ b/tests/functional-tests/03-fts-functions.py
@@ -127,4 +127,4 @@ class TestFTSFunctions (CommonTrackerStoreTest):
 
 
 if __name__ == '__main__':
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/04-group-concat.py b/tests/functional-tests/04-group-concat.py
index 06e06265b..d36523004 100644
--- a/tests/functional-tests/04-group-concat.py
+++ b/tests/functional-tests/04-group-concat.py
@@ -87,4 +87,4 @@ class TestGroupConcat (CommonTrackerStoreTest):
 
 
 if __name__ == '__main__':
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/05-coalesce.py b/tests/functional-tests/05-coalesce.py
index eddf3148e..176ae6b66 100644
--- a/tests/functional-tests/05-coalesce.py
+++ b/tests/functional-tests/05-coalesce.py
@@ -114,4 +114,4 @@ class TestCoalesce (CommonTrackerStoreTest):
 
 
 if __name__ == '__main__':
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/06-distance.py b/tests/functional-tests/06-distance.py
index b2a22d255..42989a946 100644
--- a/tests/functional-tests/06-distance.py
+++ b/tests/functional-tests/06-distance.py
@@ -124,4 +124,4 @@ class TestDistanceFunctions (CommonTrackerStoreTest):
 
 
 if __name__ == '__main__':
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/07-graph.py b/tests/functional-tests/07-graph.py
index cec6a60d5..c1a6e8697 100644
--- a/tests/functional-tests/07-graph.py
+++ b/tests/functional-tests/07-graph.py
@@ -145,4 +145,4 @@ class TestGraphs (CommonTrackerStoreTest):
 
 
 if __name__ == '__main__':
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/08-unique-insertions.py b/tests/functional-tests/08-unique-insertions.py
index a71d2118e..69e16573b 100644
--- a/tests/functional-tests/08-unique-insertions.py
+++ b/tests/functional-tests/08-unique-insertions.py
@@ -75,4 +75,4 @@ class TestMinerInsertBehaviour (CommonTrackerStoreTest):
 
 
 if __name__ == '__main__':
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/09-concurrent-query.py b/tests/functional-tests/09-concurrent-query.py
index dacd396aa..7164babb6 100644
--- a/tests/functional-tests/09-concurrent-query.py
+++ b/tests/functional-tests/09-concurrent-query.py
@@ -97,4 +97,4 @@ class TestConcurrentQuery (CommonTrackerStoreTest):
         return False
 
 if __name__ == "__main__":
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/14-signals.py b/tests/functional-tests/14-signals.py
index cae97d46d..8cf349edd 100644
--- a/tests/functional-tests/14-signals.py
+++ b/tests/functional-tests/14-signals.py
@@ -189,4 +189,4 @@ class TrackerStoreSignalsTests (CommonTrackerStoreTest):
 
 
 if __name__ == "__main__":
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/15-statistics.py b/tests/functional-tests/15-statistics.py
index 56fa38eb7..a883b1708 100644
--- a/tests/functional-tests/15-statistics.py
+++ b/tests/functional-tests/15-statistics.py
@@ -123,4 +123,4 @@ class TrackerStoreStatisticsTests (CommonTrackerStoreTest):
                 self.assertEqual(old_stats[k], new_stats[k])
 
 if __name__ == "__main__":
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/16-collation.py b/tests/functional-tests/16-collation.py
index 62765a77a..962db9640 100644
--- a/tests/functional-tests/16-collation.py
+++ b/tests/functional-tests/16-collation.py
@@ -131,4 +131,4 @@ if __name__ == "__main__":
       * Check what happens in non-english encoding
       * Dynamic change of collation (not implemented yet in tracker)
     """)
-    ut.main()
+    ut.main(verbosity=2)
diff --git a/tests/functional-tests/17-ontology-changes.py b/tests/functional-tests/17-ontology-changes.py
index 0571defb9..e2cb132f1 100644
--- a/tests/functional-tests/17-ontology-changes.py
+++ b/tests/functional-tests/17-ontology-changes.py
@@ -917,4 +917,4 @@ class PropertyRelegationTest (OntologyChangeTestTemplate):
 
 
 if __name__ == "__main__":
-    ut.main()
+    ut.main(verbosity=2)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]