blob: 1740b77cf74c85c755d8b73c8a84f645a577190d [file] [log] [blame]
jbedard@apple.com1ae01c72022-02-24 15:13:02 +00001#!/usr/bin/env python3
jlewis3@apple.com65b05d92020-03-12 19:01:51 +00002
ossy@webkit.org4bd83072014-01-08 17:14:02 +00003# Copyright (C) 2011 Google Inc. All rights reserved.
jlewis3@apple.com65b05d92020-03-12 19:01:51 +00004# Copyright (C) 2020 Apple Inc. All rights reserved.
darinca360e32005-06-07 22:02:25 +00005#
6# Redistribution and use in source and binary forms, with or without
eric@webkit.org71acb1e2010-04-18 20:34:17 +00007# modification, are permitted provided that the following conditions are
8# met:
darinca360e32005-06-07 22:02:25 +00009#
eric@webkit.org71acb1e2010-04-18 20:34:17 +000010# * Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# * Redistributions in binary form must reproduce the above
13# copyright notice, this list of conditions and the following disclaimer
14# in the documentation and/or other materials provided with the
15# distribution.
16# * Neither the name of Google Inc. nor the names of its
17# contributors may be used to endorse or promote products derived from
18# this software without specific prior written permission.
darinca360e32005-06-07 22:02:25 +000019#
eric@webkit.org71acb1e2010-04-18 20:34:17 +000020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
darinca360e32005-06-07 22:02:25 +000031
ossy@webkit.org4bd83072014-01-08 17:14:02 +000032"""Wrapper around webkitpy/layout_tests/run_webkit_tests.py"""
commit-queue@webkit.orgbe882f62018-06-29 17:47:17 +000033import sys
34
jbedard@apple.com06c66af2021-06-04 14:04:35 +000035from webkitpy.layout_tests.run_webkit_tests import main
darindbbf6b82005-06-05 23:34:52 +000036
jlewis3@apple.com65b05d92020-03-12 19:01:51 +000037if sys.platform.startswith('linux'):
don.olmstead@sony.com2f811322021-02-24 14:01:05 +000038 import os
39 top_level_directory = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
jlewis3@apple.com65b05d92020-03-12 19:01:51 +000040 sys.path.insert(0, os.path.join(top_level_directory, 'Tools', 'flatpak'))
don.olmstead@sony.com2f811322021-02-24 14:01:05 +000041
jlewis3@apple.com65b05d92020-03-12 19:01:51 +000042 import flatpakutils
43 flatpakutils.run_in_sandbox_if_available(sys.argv)
commit-queue@webkit.orgbe882f62018-06-29 17:47:17 +000044
jbedard@apple.com06c66af2021-06-04 14:04:35 +000045if __name__ == '__main__':
46 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))