Whenever I do a dump-as-markup conversions (e.g. bug 66416, bug 66420, bug 66440, bug 66443), I have to remove all platform-specific results and rebaseline test. However this is quite tedious to do by hand because I'd have to find all expected.* in LayoutTests/platform for that particular test. webkit-patch should have a command to do this.
Created attachment 104295 [details] script Here's a python script I use locally but it only works on svn checkout as of now.
If you look in http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline.py you'll see a bunch of code that does similar things. It should be easy to build something using those building blocks.
Notice that http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline.py#L128 can print a list of all these files, so you just need to call self._tool.filesystem.remove(...) on them.