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




commit ce0eccc2d1b5d81746d2a89350e76a509fb73f4f
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 16b1360e..7c9a823d 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -297,6 +297,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]