jbedard@apple.com | 1ae01c7 | 2022-02-24 15:13:02 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
jlewis3@apple.com | 65b05d9 | 2020-03-12 19:01:51 +0000 | [diff] [blame] | 2 | |
ossy@webkit.org | 4bd8307 | 2014-01-08 17:14:02 +0000 | [diff] [blame] | 3 | # Copyright (C) 2011 Google Inc. All rights reserved. |
jlewis3@apple.com | 65b05d9 | 2020-03-12 19:01:51 +0000 | [diff] [blame] | 4 | # Copyright (C) 2020 Apple Inc. All rights reserved. |
darin | ca360e3 | 2005-06-07 22:02:25 +0000 | [diff] [blame] | 5 | # |
| 6 | # Redistribution and use in source and binary forms, with or without |
eric@webkit.org | 71acb1e | 2010-04-18 20:34:17 +0000 | [diff] [blame] | 7 | # modification, are permitted provided that the following conditions are |
| 8 | # met: |
darin | ca360e3 | 2005-06-07 22:02:25 +0000 | [diff] [blame] | 9 | # |
eric@webkit.org | 71acb1e | 2010-04-18 20:34:17 +0000 | [diff] [blame] | 10 | # * 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. |
darin | ca360e3 | 2005-06-07 22:02:25 +0000 | [diff] [blame] | 19 | # |
eric@webkit.org | 71acb1e | 2010-04-18 20:34:17 +0000 | [diff] [blame] | 20 | # 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. |
darin | ca360e3 | 2005-06-07 22:02:25 +0000 | [diff] [blame] | 31 | |
ossy@webkit.org | 4bd8307 | 2014-01-08 17:14:02 +0000 | [diff] [blame] | 32 | """Wrapper around webkitpy/layout_tests/run_webkit_tests.py""" |
commit-queue@webkit.org | be882f6 | 2018-06-29 17:47:17 +0000 | [diff] [blame] | 33 | import sys |
| 34 | |
jbedard@apple.com | 06c66af | 2021-06-04 14:04:35 +0000 | [diff] [blame] | 35 | from webkitpy.layout_tests.run_webkit_tests import main |
darin | dbbf6b8 | 2005-06-05 23:34:52 +0000 | [diff] [blame] | 36 | |
jlewis3@apple.com | 65b05d9 | 2020-03-12 19:01:51 +0000 | [diff] [blame] | 37 | if sys.platform.startswith('linux'): |
don.olmstead@sony.com | 2f81132 | 2021-02-24 14:01:05 +0000 | [diff] [blame] | 38 | import os |
| 39 | top_level_directory = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..')) |
jlewis3@apple.com | 65b05d9 | 2020-03-12 19:01:51 +0000 | [diff] [blame] | 40 | sys.path.insert(0, os.path.join(top_level_directory, 'Tools', 'flatpak')) |
don.olmstead@sony.com | 2f81132 | 2021-02-24 14:01:05 +0000 | [diff] [blame] | 41 | |
jlewis3@apple.com | 65b05d9 | 2020-03-12 19:01:51 +0000 | [diff] [blame] | 42 | import flatpakutils |
| 43 | flatpakutils.run_in_sandbox_if_available(sys.argv) |
commit-queue@webkit.org | be882f6 | 2018-06-29 17:47:17 +0000 | [diff] [blame] | 44 | |
jbedard@apple.com | 06c66af | 2021-06-04 14:04:35 +0000 | [diff] [blame] | 45 | if __name__ == '__main__': |
| 46 | sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) |