Title: [289982] trunk/Tools
Revision
289982
Author
dp...@igalia.com
Date
2022-02-16 16:40:31 -0800 (Wed, 16 Feb 2022)

Log Message

[GTK][WPE] Execute API test by name
https://bugs.webkit.org/show_bug.cgi?id=236623

Reviewed by Carlos Garcia Campos.

When running either `run-gtk-tests` or `run-wpe-tests`, let them take a test name and build
the path to the test.

* glib/api_test_runner.py:
(TestRunner._get_tests):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (289981 => 289982)


--- trunk/Tools/ChangeLog	2022-02-17 00:11:38 UTC (rev 289981)
+++ trunk/Tools/ChangeLog	2022-02-17 00:40:31 UTC (rev 289982)
@@ -1,3 +1,16 @@
+2022-02-16  Diego Pino Garcia  <dp...@igalia.com>
+
+        [GTK][WPE] Execute API test by name
+        https://bugs.webkit.org/show_bug.cgi?id=236623
+
+        Reviewed by Carlos Garcia Campos.
+
+        When running either `run-gtk-tests` or `run-wpe-tests`, let them take a test name and build
+        the path to the test.
+
+        * glib/api_test_runner.py:
+        (TestRunner._get_tests):
+
 2022-02-15  Jonathan Bedard  <jbed...@apple.com>
 
         [EWS] Rename 'patch' to 'change' in api-test steps

Modified: trunk/Tools/glib/api_test_runner.py (289981 => 289982)


--- trunk/Tools/glib/api_test_runner.py	2022-02-17 00:11:38 UTC (rev 289981)
+++ trunk/Tools/glib/api_test_runner.py	2022-02-17 00:40:31 UTC (rev 289982)
@@ -87,6 +87,11 @@
             if os.path.isdir(test):
                 tests.extend(self._get_tests_from_dir(test))
             else:
+                if not os.path.exists(test):
+                    candidate = os.path.join(self._test_programs_base_dir(), test)
+                    if not os.path.exists(candidate):
+                        raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), test)
+                    test = candidate
                 tests.append(test)
         if tests:
             return tests
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to