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

Side by Side Diff: tools/isolate/tests/trace_inputs/symlink.py

Issue 11045023: Move src/tools/isolate to src/tools/swarm_client as a DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use r159961 Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import sys
8
9
10 def main():
11 print 'symlink: touches files2/'
12 assert len(sys.argv) == 1
13
14 expected = {
15 'bar': 'Foo\n',
16 'foo': 'Bar\n',
17 }
18
19 if not os.path.basename(os.getcwd()) == 'tests':
20 print 'Start this script from inside "tests"'
21 return 1
22
23 root = os.path.join('trace_inputs', 'files2')
24 actual = dict(
25 (filename, open(os.path.join(root, filename), 'rb').read())
26 for filename in (os.listdir(root)))
27
28 if actual != expected:
29 print 'Failure'
30 print actual
31 print expected
32 return 2
33 return 0
34
35
36 if __name__ == '__main__':
37 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/isolate/tests/trace_inputs/ignored.txt ('k') | tools/isolate/tests/trace_inputs/test_file.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698