RESOLVED FIXED72879
[GTK] Add a way to skip unit tests in the bots
https://bugs.webkit.org/show_bug.cgi?id=72879
Summary [GTK] Add a way to skip unit tests in the bots
Carlos Garcia Campos
Reported 2011-11-21 06:51:56 PST
testdownload is currently failing in the bots, but not for us, it would be great to be able to skip tests in the bots. It would be even better to be able to skip paths of the tests, but gtester doesn't implement it, so we need to skip full tests for now.
Attachments
Patch (4.65 KB, patch)
2011-11-21 06:56 PST, Carlos Garcia Campos
pnormand: review+
Carlos Garcia Campos
Comment 1 2011-11-21 06:56:58 PST
Created attachment 116078 [details] Patch I've rewritten the whole script in python to make it easier to modify for everybody. Last time we had to change this script we already agreed with kov to port it to python, but we didn't do it in the end.
Philippe Normand
Comment 2 2011-11-21 07:28:47 PST
Comment on attachment 116078 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116078&action=review Looks good, thanks! Just a little nit to fix before landing. > Tools/Scripts/run-gtk-tests:79 > + raise I don't think this works, raise needs a following exception, you should use the traceback module: import traceback traceback.print_exc()
Carlos Garcia Campos
Comment 3 2011-11-21 08:10:12 PST
(In reply to comment #2) > (From update of attachment 116078 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=116078&action=review > > Looks good, thanks! Just a little nit to fix before landing. > > > Tools/Scripts/run-gtk-tests:79 > > + raise > > I don't think this works, raise needs a following exception, you should use the traceback module: > > import traceback > traceback.print_exc() that raise was just for debugging, I forgot to remove it before sending the patch.
Carlos Garcia Campos
Comment 4 2011-11-21 08:22:11 PST
Philippe Normand
Comment 5 2011-11-21 10:57:13 PST
Borked our Debug bots! Traceback (most recent call last): File "./Tools/Scripts/run-gtk-tests", line 84, in <module> sys.exit(TestRunner().run()) File "./Tools/Scripts/run-gtk-tests", line 38, in __init__ for test_file in os.listdir(os.path.join(self._programs_path, test_dir)): OSError: [Errno 2] No such file or directory: '/home/slave/webkitgtk/gtk-linux-64-debug/build/WebKitBuild/Release/Programs/unittests That's because we never call set-webkit-configuration it seems. So webkit-build-directory always returns Release.
Philippe Normand
Comment 6 2011-11-21 11:10:28 PST
(In reply to comment #5) > Borked our Debug bots! > > Traceback (most recent call last): > File "./Tools/Scripts/run-gtk-tests", line 84, in <module> > sys.exit(TestRunner().run()) > File "./Tools/Scripts/run-gtk-tests", line 38, in __init__ > for test_file in os.listdir(os.path.join(self._programs_path, test_dir)): > OSError: [Errno 2] No such file or directory: '/home/slave/webkitgtk/gtk-linux-64-debug/build/WebKitBuild/Release/Programs/unittests > > That's because we never call set-webkit-configuration it seems. So webkit-build-directory always returns Release. Landed a temporary workaround http://trac.webkit.org/changeset/100938
Philippe Normand
Comment 7 2011-11-21 11:12:19 PST
See also bug 72902
Note You need to log in before you can comment on or make changes to this bug.