Currently, any executable file placed under the WK2GTK's API tests directory will be executed, no matter it has or not the "test" or "Test" prefix, which is a problem at least for the patch about bug 72589, since we need to place there a helper program that is not a test, but an "accessibility test server" to be inspected from TestWebKitAccessibility (the actual test).
Initial solution in bug 72589 to this was to include the WebKit2APITests/AccessibilityTestServer file in the SKIPPED list in run-gtk-tests, but it seems that a better solution would be just to make run-gtk-tests to ignore files without the "test" (used for WK1's API tests) and the "Test" (used in WK2) prefix.
So, this bug is about that.
Created attachment 120949 [details]
Comment on attachment 120949 [details]
Looks good to me, I would probably use if not test_file.lower().startswith("test") but I guess it's a matter of taste.
Created attachment 120953 [details]
A better approach
Committed r103943: <http://trac.webkit.org/changeset/103943>