Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: third_party/WebKit/LayoutTests/mojo/gen_data_files_list.py

Issue 2745293005: Moving mojo/validation test into LayoutTests (Closed)
Patch Set: remove extra old dependency Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 """Generates the data file directory to run validation tests.
2
3 This script finds all of the files in the resources/data/validaiton folder
4 and generates a file listing all of those files. That file is then consumed
5 by the validation test so that it can locate and fetch all data files.
6 """
7
8 from os import listdir
9 import sys
10
11 def gen_files():
12 files = listdir("../../mojo/public/interfaces/bindings/tests/data/validation")
13 out = file(sys.argv[1], 'w')
14 files = [ f[:-5] for f in files if f[-5:] == '.data' ]
15 with out:
16 for f in files:
17 out.write(f + '\n')
18
19 gen_files()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698