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

Side by Side Diff: sky/tools/webkitpy/layout_tests/run_webkit_tests.py

Issue 1218593002: Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« sky/sdk/README.md ('K') | « sky/tools/deploy_sdk.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze ged
3 # Copyright (C) 2011 Apple Inc. All rights reserved. 3 # Copyright (C) 2011 Apple Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 return run_details 390 return run_details
391 finally: 391 finally:
392 printer.cleanup() 392 printer.cleanup()
393 393
394 def run_analyzer(port, options, args, logging_stream): 394 def run_analyzer(port, options, args, logging_stream):
395 build_dir = port.analyzer_build_directory() 395 build_dir = port.analyzer_build_directory()
396 test_dir = os.path.dirname(os.path.abspath(__file__)) 396 test_dir = os.path.dirname(os.path.abspath(__file__))
397 sky_tools_dir = os.path.dirname(os.path.dirname(test_dir)) 397 sky_tools_dir = os.path.dirname(os.path.dirname(test_dir))
398 analyzer_path = os.path.join(sky_tools_dir, 'skyanalyzer') 398 analyzer_path = os.path.join(sky_tools_dir, 'skyanalyzer')
399 src_dir = os.path.dirname(os.path.dirname(sky_tools_dir)) 399 src_dir = os.path.dirname(os.path.dirname(sky_tools_dir))
400 analyzer_target_path = os.path.join(src_dir, 'sky/examples/stocks2/lib/stock _app.dart') 400 analyzer_target_path = os.path.join(src_dir, 'sky/sdk/lib/example/stocks2/li b/stock_app.dart')
401 analyzer_args = [ 401 analyzer_args = [
402 analyzer_path, 402 analyzer_path,
403 build_dir, 403 build_dir,
404 analyzer_target_path 404 analyzer_target_path
405 ] 405 ]
406 try: 406 try:
407 output = subprocess.check_output(analyzer_args, stderr=subprocess.STDOUT ) 407 output = subprocess.check_output(analyzer_args, stderr=subprocess.STDOUT )
408 except subprocess.CalledProcessError as e: 408 except subprocess.CalledProcessError as e:
409 print >> logging_stream, "Analyzer found new issues:" 409 print >> logging_stream, "Analyzer found new issues:"
410 print >> logging_stream, e.output 410 print >> logging_stream, e.output
411 return e.returncode 411 return e.returncode
412 return 0 412 return 0
413 413
414 if __name__ == '__main__': 414 if __name__ == '__main__':
415 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) 415 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr))
OLDNEW
« sky/sdk/README.md ('K') | « sky/tools/deploy_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698