Changeset 264951 in webkit


Ignore:
Timestamp:
Jul 27, 2020 4:27:27 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Add output directory option to WebGL conformance import script
https://bugs.webkit.org/show_bug.cgi?id=214856

Patch by Kenneth Russell <kbr@chromium.org> on 2020-07-27
Reviewed by Dean Jackson.

Add an -o / --ouptut-dir option to support revising the
LayoutTests/webgl/2.0.0 snapshot.

  • webgl/generate-webgl-tests.py:

(main):

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r264950 r264951  
     12020-07-27  Kenneth Russell  <kbr@chromium.org>
     2
     3        Add output directory option to WebGL conformance import script
     4        https://bugs.webkit.org/show_bug.cgi?id=214856
     5
     6        Reviewed by Dean Jackson.
     7
     8        Add an -o / --ouptut-dir option to support revising the
     9        LayoutTests/webgl/2.0.0 snapshot.
     10
     11        * webgl/generate-webgl-tests.py:
     12        (main):
     13
    1142020-07-24  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/LayoutTests/webgl/generate-webgl-tests.py

    r232783 r264951  
    213213      "-e", "--generate-expectations", action="store_true",
    214214      help="generatet the test expectations")
     215  parser.add_option(
     216      "-o", "--output-dir", dest="output_dir",
     217      help="base directory for output. defaults to \'.\'",
     218      default=".")
    215219
    216220  (options, args) = parser.parse_args(args=argv)
     
    223227
    224228  source_dir = options.source_dir;
    225   webgl_tests_dir = "resources/webgl_test_files"
    226   base_path = "."
     229  output_dir = options.output_dir;
     230  webgl_tests_dir = os.path.join(output_dir, "resources/webgl_test_files")
    227231
    228232  # copy all the files from the WebGL conformance tests.
     
    241245  for test in tests:
    242246    url = os.path.relpath(test["url"], source_dir)
    243     dst = url
     247    dst = os.path.join(output_dir, url)
    244248    dst_dir = os.path.dirname(dst)
    245249    src = os.path.relpath(os.path.join(webgl_tests_dir, url), dst_dir).replace("\\", "/")
    246     base_url = os.path.relpath(base_path, dst_dir).replace("\\", "/")
     250    base_url = os.path.relpath(output_dir, dst_dir).replace("\\", "/")
    247251    subs = {
    248252      "url": src,
Note: See TracChangeset for help on using the changeset viewer.