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

Unified Diff: tools/isolate/tests/run_test_from_archive/check_files.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/run_test_from_archive/check_files.py
diff --git a/tools/isolate/tests/run_test_from_archive/check_files.py b/tools/isolate/tests/run_test_from_archive/check_files.py
deleted file mode 100755
index cd429ef0b93061184c18f683d508579b854d9eaa..0000000000000000000000000000000000000000
--- a/tools/isolate/tests/run_test_from_archive/check_files.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.
-
-"""Checks all the expected files are mapped."""
-
-import os
-import sys
-
-ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
-
-
-def main():
- expected = sorted([
- 'check_files.py',
- 'gtest_fake.py',
- 'file1.txt',
- 'file2.txt',
- ])
- actual = sorted(os.listdir(ROOT_DIR))
- if expected != actual:
- print >> sys.stderr, 'Expected list doesn\'t match:'
- print >> sys.stderr, ', '.join(expected)
- print >> sys.stderr, ', '.join(actual)
- return 1
-
- # Check that file2.txt is in reality file3.txt.
- with open(os.path.join(ROOT_DIR, 'file2.txt'), 'rb') as f:
- if f.read() != 'File3\n':
- print >> sys.stderr, 'file2.txt should be file3.txt in reality'
- return 2
-
- print 'Success'
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « tools/isolate/tests/run_test_cases_test.py ('k') | tools/isolate/tests/run_test_from_archive/check_files.results » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698