Bug 69121 - run-api-tests fails on chromium-win bot
: run-api-tests fails on chromium-win bot
Status: RESOLVED FIXED
: WebKit
Tools / Tests
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2011-09-29 19:24 PST by
Modified: 2011-09-29 22:05 PST (History)


Attachments
patch (2.08 KB, patch)
2011-09-29 19:39 PST, Xianzhu Wang
no flags Review Patch | Details | Formatted Diff | Diff
patch (fixed a grammar error in help message) (2.07 KB, patch)
2011-09-29 19:44 PST, Xianzhu Wang
abarth: review-
Review Patch | Details | Formatted Diff | Diff
patch v3 (1.27 KB, patch)
2011-09-29 20:53 PST, Xianzhu Wang
no flags Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2011-09-29 19:24:11 PST
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 ...'.
------- Comment #1 From 2011-09-29 19:39:54 PST -------
Created an attachment (id=109242) [details]
patch
------- Comment #2 From 2011-09-29 19:44:11 PST -------
Created an attachment (id=109244) [details]
patch (fixed a grammar error in help message)
------- Comment #3 From 2011-09-29 20:23:06 PST -------
(From update of attachment 109244 [details])
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.  :)
------- Comment #4 From 2011-09-29 20:52:52 PST -------
(From update of attachment 109244 [details])
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 :)
------- Comment #5 From 2011-09-29 20:53:02 PST -------
Created an attachment (id=109249) [details]
patch v3
------- Comment #6 From 2011-09-29 21:01:21 PST -------
(From update of attachment 109249 [details])
Thanks!
------- Comment #7 From 2011-09-29 22:04:58 PST -------
(From update of attachment 109249 [details])
Clearing flags on attachment: 109249

Committed r96388: <http://trac.webkit.org/changeset/96388>
------- Comment #8 From 2011-09-29 22:05:03 PST -------
All reviewed patches have been landed.  Closing bug.