Title: [264951] trunk/LayoutTests
- Revision
- 264951
- Author
- commit-qu...@webkit.org
- Date
- 2020-07-27 16:27:27 -0700 (Mon, 27 Jul 2020)
Log Message
Add output directory option to WebGL conformance import script
https://bugs.webkit.org/show_bug.cgi?id=214856
Patch by Kenneth Russell <k...@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):
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (264950 => 264951)
--- trunk/LayoutTests/ChangeLog 2020-07-27 22:40:42 UTC (rev 264950)
+++ trunk/LayoutTests/ChangeLog 2020-07-27 23:27:27 UTC (rev 264951)
@@ -1,3 +1,16 @@
+2020-07-27 Kenneth Russell <k...@chromium.org>
+
+ Add output directory option to WebGL conformance import script
+ https://bugs.webkit.org/show_bug.cgi?id=214856
+
+ 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):
+
2020-07-24 Ryan Haddad <ryanhad...@apple.com>
Add test expectations and baselines for iOS 14
Modified: trunk/LayoutTests/webgl/generate-webgl-tests.py (264950 => 264951)
--- trunk/LayoutTests/webgl/generate-webgl-tests.py 2020-07-27 22:40:42 UTC (rev 264950)
+++ trunk/LayoutTests/webgl/generate-webgl-tests.py 2020-07-27 23:27:27 UTC (rev 264951)
@@ -212,6 +212,10 @@
parser.add_option(
"-e", "--generate-expectations", action=""
help="generatet the test expectations")
+ parser.add_option(
+ "-o", "--output-dir", dest="output_dir",
+ help="base directory for output. defaults to \'.\'",
+ default=".")
(options, args) = parser.parse_args(args=argv)
@@ -222,8 +226,8 @@
os.chdir(os.path.dirname(__file__) or '.')
source_dir = options.source_dir;
- webgl_tests_dir = "resources/webgl_test_files"
- base_path = "."
+ output_dir = options.output_dir;
+ webgl_tests_dir = os.path.join(output_dir, "resources/webgl_test_files")
# copy all the files from the WebGL conformance tests.
if not options.no_copy:
@@ -240,10 +244,10 @@
for test in tests:
url = "" source_dir)
- dst = url
+ dst = os.path.join(output_dir, url)
dst_dir = os.path.dirname(dst)
src = "" url), dst_dir).replace("\\", "/")
- base_url = os.path.relpath(base_path, dst_dir).replace("\\", "/")
+ base_url = os.path.relpath(output_dir, dst_dir).replace("\\", "/")
subs = {
"url": src,
"url_name": os.path.basename(url),
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes