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

Side by Side Diff: ports/devenv/devenv_small_test.py

Issue 1128053005: Update yapf version (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « ports/devenv/devenv_large_test.py ('k') | ports/devenv/io2014_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5
6 """Tests of the devenv app.""" 5 """Tests of the devenv app."""
7 6
8 import os 7 import os
9 import sys 8 import sys
10 9
11 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 10 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
12 sys.path.append(os.path.join(SCRIPT_DIR, '../..')) 11 sys.path.append(os.path.join(SCRIPT_DIR, '../..'))
13 SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR)) 12 SRC_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
14 TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib') 13 TOOLCHAIN = os.environ.get('TOOLCHAIN', 'newlib')
15 DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/devenv', TOOLCHAIN) 14 DEVENV_OUT_DIR = os.path.join(SRC_DIR, 'out/publish/devenv', TOOLCHAIN)
16 15
17 import chrome_test 16 import chrome_test
18 17
19 18
20 app = os.path.join(DEVENV_OUT_DIR, 'app') 19 app = os.path.join(DEVENV_OUT_DIR, 'app')
21 test_dir = os.path.join(SCRIPT_DIR, 'tests') 20 test_dir = os.path.join(SCRIPT_DIR, 'tests')
22 test_out_dir = os.path.join(DEVENV_OUT_DIR, 'tests') 21 test_out_dir = os.path.join(DEVENV_OUT_DIR, 'tests')
23 22
24 chrome_test.Main([ 23 chrome_test.Main([
25 '-C', test_dir, 24 '-C', test_dir,
26 '-C', test_out_dir, 25 '-C', test_out_dir,
27 '-t', '60', 26 '-t', '60',
28 '--enable-nacl', 27 '--enable-nacl',
29 '--load-extension', app, 28 '--load-extension', app,
30 'devenv_small_test.html'] + sys.argv[1:]) 29 'devenv_small_test.html'] + sys.argv[1:])
OLDNEW
« no previous file with comments | « ports/devenv/devenv_large_test.py ('k') | ports/devenv/io2014_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698