Bug 237778 - [Flatpak SDK] API tests scripts have conflicting parameters with the Flatpak scripts
Summary: [Flatpak SDK] API tests scripts have conflicting parameters with the Flatpak ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alejandro G. Castro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-11 05:46 PST by Alejandro G. Castro
Modified: 2022-03-14 11:26 PDT (History)
4 users (show)

See Also:


Attachments
Patch (4.67 KB, patch)
2022-03-11 05:52 PST, Alejandro G. Castro
no flags Details | Formatted Diff | Diff
Patch (4.66 KB, patch)
2022-03-14 04:52 PDT, Alejandro G. Castro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro G. Castro 2022-03-11 05:46:12 PST
run-gtk-tests and run-wpe-tests have arguments that cause conflict with the flatpak sdk, we have to rewrite and consume some of them to avoid problems because we do not know in those cases what the user is requesting, in general until we rewrite this script to a newer version we should always suggest to use the long format of the parameter name.
Comment 1 Alejandro G. Castro 2022-03-11 05:52:32 PST
Created attachment 454475 [details]
Patch
Comment 2 Lauro Moura 2022-03-11 08:39:10 PST
Comment on attachment 454475 [details]
Patch

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

> Tools/glib/api_test_runner.py:403
> +    for arg in sys.argv:

Shouldn't this be `argv` instead of `sys.argv`? (Happens to work in both scripts because we are already passing `sys.argv` as `argv`)
Comment 3 Philippe Normand 2022-03-12 03:35:37 PST
Comment on attachment 454475 [details]
Patch

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

>> Tools/glib/api_test_runner.py:403
>> +    for arg in sys.argv:
> 
> Shouldn't this be `argv` instead of `sys.argv`? (Happens to work in both scripts because we are already passing `sys.argv` as `argv`)

Right, good point Lauro!
Comment 4 Alejandro G. Castro 2022-03-14 02:49:54 PDT
Thanks for the reviews! I'll upload a new patch.
Comment 5 Alejandro G. Castro 2022-03-14 04:52:35 PDT
Created attachment 454580 [details]
Patch
Comment 6 EWS 2022-03-14 11:26:37 PDT
Committed r291240 (248395@main): <https://commits.webkit.org/248395@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454580 [details].