Bug 208954

Summary: Make flatpack import for run-webkit-tests only happen on linux systems
Product: WebKit Reporter: Matt Lewis <jlewis3>
Component: Tools / TestsAssignee: Matt Lewis <jlewis3>
Status: RESOLVED FIXED    
Severity: Normal CC: clopez, commit-queue, jbedard, mcatanzaro, pnormand, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Matt Lewis 2020-03-11 16:27:31 PDT
import Flatpack was added to run-webkit-test as a required import and means that we can't run the script without it on any other platforms, even when not needed.

We should be able to run the script and determine at call time if we need the import.
Comment 1 Radar WebKit Bug Importer 2020-03-11 16:27:50 PDT
<rdar://problem/60346729>
Comment 2 Matt Lewis 2020-03-11 16:57:18 PDT
Created attachment 393308 [details]
Patch
Comment 3 Jonathan Bedard 2020-03-11 17:17:00 PDT
Comment on attachment 393308 [details]
Patch

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

This looks correct to be, but I'd like the folks more familiar with how we actually use flatpak.

Another alternative approach would be to conditionalize on if flatpak can be found in the provided directory.

> Tools/Scripts/run-webkit-tests:16
> +#     * Neither the Google name nor the names of its

No reason to make this change
Comment 4 Philippe Normand 2020-03-12 02:16:53 PDT
Comment on attachment 393308 [details]
Patch

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

> Tools/Scripts/run-webkit-tests:39
> +if sys.platform.startswith('Linux'):

lower-case linux
Comment 5 Matt Lewis 2020-03-12 10:03:43 PDT
Created attachment 393386 [details]
Patch
Comment 6 WebKit Commit Bot 2020-03-12 12:01:56 PDT
Comment on attachment 393386 [details]
Patch

Clearing flags on attachment: 393386

Committed r258347: <https://trac.webkit.org/changeset/258347>
Comment 7 WebKit Commit Bot 2020-03-12 12:01:58 PDT
All reviewed patches have been landed.  Closing bug.