[gnome-bluetooth/wip/hadess/remove-gtk-tree: 15/19] tests: Print test name before running it out-of-process




commit c1f0e9edba0bc3f77a8222b8a2dcae87e3cb6566
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 1 17:28:29 2021 +0100

    tests: Print test name before running it out-of-process

 tests/integration-test | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/integration-test b/tests/integration-test
index a0590167..824e2618 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -335,6 +335,7 @@ class Tests(dbusmock.DBusTestCase):
     def run_test_process(self):
         # Get the calling function's name
         test_name = inspect.stack()[1][3]
+        print(f"Running out-of-process test {test_name}")
         # And run the test with the same name in the OopTests class in a separate process
         out = subprocess.run(self.exec_path + ['OopTests.' + test_name], capture_output=True)
         self.assertEqual(out.returncode, 0, "Running test " + test_name + " failed:" + 
out.stderr.decode('UTF-8') + '\n\n\nSTDOUT:\n' + out.stdout.decode('UTF-8'))


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