Closed Bug 1356227 Opened 7 years ago Closed 7 years ago

Add support for excluding paths when downstreaming tests

Categories

(Testing :: web-platform-tests, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jgraham, Unassigned)

Details

Attachments

(1 file)

Needed for CSS at the moment.
Comment on attachment 8857924 [details]
Bug 1356227 - Add support for excluding paths when doing a wpt sync,

https://reviewboard.mozilla.org/r/129958/#review132532

::: testing/web-platform/harness/wptrunner/update/tree.py:319
(Diff revision 1)
> -            rel_path = os.path.relpath(repo_path, self.root)
> -            rv.extend(os.path.join(rel_path, item.strip()) for item in paths if item.strip())
> +            rv.extend(os.path.relpath(os.path.join(repo_path, item), self.root) for item in paths
> +                      if item.strip())

This is OK, but it is closing in on the complexity that would justify splitting it up as a normal iterator in my opinion.

It took me a while to understand what item.strip() meant because it basically just relies on the falsiness of it.
Attachment #8857924 - Flags: review?(ato) → review+
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c9919c878c14
Add support for excluding paths when doing a wpt sync, r=ato
https://hg.mozilla.org/mozilla-central/rev/c9919c878c14
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Backout by archaeopteryx@coole-files.de:
https://hg.mozilla.org/mozilla-central/rev/1a1069b27f40
Backed out changeset c9919c878c14 for neverending W(7) jobs on Windows 7 VM debug. r=backout a=backout
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f7b360ab2445
Add support for excluding paths when doing a wpt sync, r=ato
https://hg.mozilla.org/mozilla-central/rev/f7b360ab2445
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: