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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py

Issue 2423853002: bluetooth: Add script to generate tests based on templates (Closed)
Patch Set: Clean up Created 4 years, 2 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 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 """Chromium presubmit script for Web Bluetooth layout tests.
5
6 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts.
7 """
8
9
10 def CheckGeneratedFiles(input_api, output_api):
11 test_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
12 'generate_test.py')
13 cmd_name = 'generate_test'
14 if input_api.platform == 'win32':
15 # Windows needs some help.
16 cmd = [input_api.python_executable, test_path]
Jeffrey Yasskin 2016/10/19 01:39:23 Does it work to do this unconditionally?
ortuno 2016/10/19 04:34:04 It does. Done.
17 else:
18 cmd = [test_path]
19
20 test_cmd = input_api.Command(
21 name=cmd_name, cmd=cmd, kwargs={}, message=output_api.PresubmitError)
22 if input_api.verbose:
23 print('Running ' + cmd_name)
24
25 return input_api.RunTests([test_cmd])
26
27
28 def CheckChangeOnUpload(input_api, output_api):
29 return CheckGeneratedFiles(input_api, output_api)
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bluetooth/README » ('j') | third_party/WebKit/LayoutTests/bluetooth/generate.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698