Bug 172322 - webkitpy: Layout tests which have no output will succeed
Summary: webkitpy: Layout tests which have no output will succeed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-18 15:52 PDT by Jonathan Bedard
Modified: 2017-05-30 07:55 PDT (History)
6 users (show)

See Also:


Attachments
Patch (3.33 KB, patch)
2017-05-18 15:56 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2017-05-18 15:52:17 PDT
If a layout test has no output, it will succeed.  Such tests should fail.
Comment 1 Jonathan Bedard 2017-05-18 15:53:00 PDT
Tracked internally at <rdar://problem/32258350>
Comment 2 Jonathan Bedard 2017-05-18 15:56:11 PDT
Created attachment 310568 [details]
Patch
Comment 3 David Kilzer (:ddkilzer) 2017-05-18 16:00:22 PDT
Comment on attachment 310568 [details]
Patch

r=me
Comment 4 Jonathan Bedard 2017-05-18 16:03:21 PDT
Comment on attachment 310568 [details]
Patch

Waiting till EWS comes back before landing.
Comment 5 WebKit Commit Bot 2017-05-19 09:23:18 PDT
Comment on attachment 310568 [details]
Patch

Clearing flags on attachment: 310568

Committed r217130: <http://trac.webkit.org/changeset/217130>
Comment 6 WebKit Commit Bot 2017-05-19 09:23:19 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Daniel Bates 2017-05-19 22:53:14 PDT
Should we take a similar approach in SingleTestRunner._compare_audio() when there is no actual result?
Comment 8 Daniel Bates 2017-05-19 22:57:36 PDT
How are these tests classified in the layout test results results.html file?
Comment 9 Daniel Bates 2017-05-19 23:05:31 PDT
(In reply to Daniel Bates from comment #8)
> How are these tests classified in the layout test results results.html file?

They are classified as test_expectations.MISSING in determine_result_type() (defined in Tools/Scripts/webkitpy/layout_tests/models/test_failures.py). Tests that have no actual result more than likely represent a bug in the test tool/infrastructure and we should segregate them from tests that are missing their expected results.
Comment 10 Daniel Bates 2017-05-19 23:07:14 PDT
Comment on attachment 310568 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=310568&action=review

> Tools/Scripts/webkitpy/layout_tests/models/test_failures.py:170
> +        return 'test was not run'

Is this correct? I mean, did we really not run the test or did we run the test and it had no output?
Comment 11 Jonathan Bedard 2017-05-30 07:55:16 PDT
(In reply to Daniel Bates from comment #10)
> Comment on attachment 310568 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=310568&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/models/test_failures.py:170
> > +        return 'test was not run'
> 
> Is this correct? I mean, did we really not run the test or did we run the
> test and it had no output?

We attempted to run the test and had no output.  This could mean that we actually ran the test and had to output, or it could mean that the test was not run at all.  In my experience, this failure is usually caused by a test failing to run, although, the tests associated with https://bugs.webkit.org/show_bug.cgi?id=172378 likely have different causes.