RESOLVED FIXED69121
run-api-tests fails on chromium-win bot
https://bugs.webkit.org/show_bug.cgi?id=69121
Summary run-api-tests fails on chromium-win bot
Xianzhu Wang
Reported 2011-09-29 19:24:11 PDT
The log shows: Running build-api-tests 'Tools\Scripts\build-api-tests' is not recognized as an internal or external command, operable program or batch file. Compiling TestWebKitAPI failed! I guess we can't execute 'Tools\Scripts\build-api-tests' (with chdirWebKit()) directly from a perl script on Windows, but must execute with with 'perl ...'.
Attachments
patch (2.08 KB, patch)
2011-09-29 19:39 PDT, Xianzhu Wang
no flags
patch (fixed a grammar error in help message) (2.07 KB, patch)
2011-09-29 19:44 PDT, Xianzhu Wang
abarth: review-
patch v3 (1.27 KB, patch)
2011-09-29 20:53 PDT, Xianzhu Wang
no flags
Xianzhu Wang
Comment 1 2011-09-29 19:39:54 PDT
Xianzhu Wang
Comment 2 2011-09-29 19:44:11 PDT
Created attachment 109244 [details] patch (fixed a grammar error in help message)
Adam Barth
Comment 3 2011-09-29 20:23:06 PDT
Comment on attachment 109244 [details] patch (fixed a grammar error in help message) View in context: https://bugs.webkit.org/attachment.cgi?id=109244&action=review > Tools/Scripts/run-api-tests:68 > + --[no-]build Build (or do not build) unit tests prior to running (default: $buildDefault. No use for Chromium as buile-webkit builds everything) Not used for Chromium because build-webkit builds everything Actually, I'd skip this part of the change. > Tools/Scripts/run-api-tests:85 > -buildTestTool() if $build; > +buildTestTool() if $build && !isChromium(); I'd also skip this part. > Tools/Scripts/run-api-tests:285 > - my $buildProcess = open3($childIn, $childOut, $childErr, $pathToBuildTestTool, @args) or die "Failed to run " . $buildTestTool; > + my $buildProcess = open3($childIn, $childOut, $childErr, "perl", $pathToBuildTestTool, @args) or die "Failed to run " . $buildTestTool; This is the only part that's needed. Are you sure you don't need to put $pathToBuildTestTool into @args? I'm somewhat of a Perl novice. :)
Xianzhu Wang
Comment 4 2011-09-29 20:52:52 PDT
Comment on attachment 109244 [details] patch (fixed a grammar error in help message) View in context: https://bugs.webkit.org/attachment.cgi?id=109244&action=review >> Tools/Scripts/run-api-tests:68 >> + --[no-]build Build (or do not build) unit tests prior to running (default: $buildDefault. No use for Chromium as buile-webkit builds everything) > > Not used for Chromium because build-webkit builds everything > > Actually, I'd skip this part of the change. Done. >> Tools/Scripts/run-api-tests:85 >> +buildTestTool() if $build && !isChromium(); > > I'd also skip this part. Done. >> Tools/Scripts/run-api-tests:285 >> + my $buildProcess = open3($childIn, $childOut, $childErr, "perl", $pathToBuildTestTool, @args) or die "Failed to run " . $buildTestTool; > > This is the only part that's needed. > > Are you sure you don't need to put $pathToBuildTestTool into @args? I'm somewhat of a Perl novice. :) I saw the same usage in old-run-webkit-tests (line 1444), and it works at least on Linux. I'm Perl novice too :)
Xianzhu Wang
Comment 5 2011-09-29 20:53:02 PDT
Created attachment 109249 [details] patch v3
Adam Barth
Comment 6 2011-09-29 21:01:21 PDT
Comment on attachment 109249 [details] patch v3 Thanks!
WebKit Review Bot
Comment 7 2011-09-29 22:04:58 PDT
Comment on attachment 109249 [details] patch v3 Clearing flags on attachment: 109249 Committed r96388: <http://trac.webkit.org/changeset/96388>
WebKit Review Bot
Comment 8 2011-09-29 22:05:03 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.