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

Unified Diff: headless/lib/browser/client_api_generator_unittest.py

Issue 2411563002: headless: Don't run tests during the build (Closed)
Patch Set: typ plz 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/BUILD.gn ('k') | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/client_api_generator_unittest.py
diff --git a/headless/lib/browser/client_api_generator_unittest.py b/headless/lib/browser/client_api_generator_unittest.py
old mode 100644
new mode 100755
index d9d3f81dea79e90435920ddd0aa04af68bbb46b4..93eb9e6e906a42fd3af1f0e9abc864ae59046b4a
--- a/headless/lib/browser/client_api_generator_unittest.py
+++ b/headless/lib/browser/client_api_generator_unittest.py
@@ -1,8 +1,9 @@
+#!/usr/bin/env python
+
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import argparse
import client_api_generator
import shutil
import sys
@@ -453,6 +454,7 @@ class ClientApiGeneratorTest(unittest.TestCase):
try:
dirname = tempfile.mkdtemp()
jinja_env = client_api_generator.InitializeJinjaEnv(dirname)
+ client_api_generator.CreateTypeDefinitions(json_api)
client_api_generator.Generate(jinja_env, dirname, json_api, 'types',
['cc'])
client_api_generator.Generate(jinja_env, dirname, json_api, 'types',
@@ -497,10 +499,4 @@ class ClientApiGeneratorTest(unittest.TestCase):
if __name__ == '__main__':
- cmdline_parser = argparse.ArgumentParser()
- cmdline_parser.add_argument('--stamp')
- args = cmdline_parser.parse_args()
- unittest.main(verbosity=2, exit=False, argv=sys.argv[:1])
- if args.stamp:
- with open(args.stamp, 'a') as f:
- pass
+ unittest.main(verbosity=2, exit=False, argv=sys.argv)
« no previous file with comments | « headless/BUILD.gn ('k') | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698