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

Unified Diff: tools/isolate/tests/isolate/symlink_full.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 side-by-side diff with in-line comments
Download patch
Index: tools/isolate/tests/isolate/symlink_full.py
diff --git a/tools/isolate/tests/isolate/symlink_full.py b/tools/isolate/tests/isolate/symlink_full.py
deleted file mode 100755
index fa9865c30cd7cd581261fafb3b521ec96c4f7b85..0000000000000000000000000000000000000000
--- a/tools/isolate/tests/isolate/symlink_full.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 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 os
-import sys
-
-
-def main():
- print 'symlink: touches files2/'
- assert len(sys.argv) == 1
-
- expected = {
- os.path.join('subdir', '42.txt'):
- 'the answer to life the universe and everything\n',
- 'test_file1.txt': 'Foo\n',
- 'test_file2.txt': 'Bar\n',
- }
-
- root = 'files2'
- actual = {}
- for relroot, dirnames, filenames in os.walk(root):
- for filename in filenames:
- fullpath = os.path.join(relroot, filename)
- actual[fullpath[len(root)+1:]] = open(fullpath, 'rb').read()
- if '.svn' in dirnames:
- dirnames.remove('.svn')
-
- if actual != expected:
- print 'Failure'
- print actual
- print expected
- return 1
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « tools/isolate/tests/isolate/symlink_full.isolate ('k') | tools/isolate/tests/isolate/symlink_partial.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698