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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/PRESUBMIT.py

Issue 2166463002: bluetooth: Basic Web Bluetooth Fuzzer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Move to testing/clusterfuzz directory Created 4 years, 5 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
5 """Script that runs tests before uploading a patch."""
6
7
8 def _RunTests(input_api, output_api):
9 """Runs all test files in the directory."""
10 cmd_name = 'all_python_tests'
11 cmd = ['python', '-m', 'unittest', 'discover', '-p', '*test.py']
12 test_cmd = input_api.Command(
13 name=cmd_name,
14 cmd=cmd,
15 kwargs={},
16 message=output_api.PresubmitError)
17 if input_api.verbose:
18 print 'Running ' + cmd_name
19 return input_api.RunTests([test_cmd])
20
21
22 def CheckChangeOnUpload(input_api, output_api):
23 return _RunTests(input_api, output_api)
24
25
26 def CheckChangeOnCommit(input_api, output_api):
27 return _RunTests(input_api, output_api)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698