Changeset 273233 in webkit


Ignore:
Timestamp:
Feb 22, 2021 2:19:07 AM (3 years ago)
Author:
commit-queue@webkit.org
Message:

[Flatpak SDK] Bootstrap the run-httpd script in the SDK runtime
https://bugs.webkit.org/show_bug.cgi?id=221464

Patch by Philippe Normand <pnormand@igalia.com> on 2021-02-22
Reviewed by Žan Doberšek.

  • Scripts/run-webkit-httpd: On Linux platforms, run the script within the SDK runtime, if it

is available on the host system.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r273227 r273233  
     12021-02-22  Philippe Normand  <pnormand@igalia.com>
     2
     3        [Flatpak SDK] Bootstrap the run-httpd script in the SDK runtime
     4        https://bugs.webkit.org/show_bug.cgi?id=221464
     5
     6        Reviewed by Žan Doberšek.
     7
     8        * Scripts/run-webkit-httpd: On Linux platforms, run the script within the SDK runtime, if it
     9        is available on the host system.
     10
    1112021-02-21  Andres Gonzalez  <andresg_22@apple.com>
    212
  • trunk/Tools/Scripts/run-webkit-httpd

    r226395 r273233  
    2929# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3030
     31import os
    3132import sys
    3233
    3334from webkitpy.layout_tests.servers.run_webkit_httpd import parse_args, run_server
    3435
     36
     37top_level_directory = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
     38if sys.platform.startswith('linux'):
     39    sys.path.insert(0, os.path.join(top_level_directory, 'Tools', 'flatpak'))
     40    import flatpakutils
     41    flatpakutils.run_in_sandbox_if_available(sys.argv)
    3542
    3643def main(argv, stdout, stderr):
Note: See TracChangeset for help on using the changeset viewer.