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

Unified Diff: tools/isolate/data/isolate/touch_root.py

Issue 10068032: Rewrite isolate_smoke_test.py to increase the coverage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _execute() is now less ambiguous, still with test case name verification Created 8 years, 8 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
« no previous file with comments | « tools/isolate/data/isolate/touch_root.isolate ('k') | tools/isolate/data/isolate/with_flag.isolate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/data/isolate/touch_root.py
diff --git a/tools/isolate/data/isolate/touch_root.py b/tools/isolate/data/isolate/touch_root.py
new file mode 100755
index 0000000000000000000000000000000000000000..1d014fc208e642b2baa3bb98355fcbe21f21cf57
--- /dev/null
+++ b/tools/isolate/data/isolate/touch_root.py
@@ -0,0 +1,24 @@
+#!/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 'child_touch_root: Verify the relative directories'
+ root_dir = os.path.dirname(os.path.abspath(__file__))
+ parent_dir, base = os.path.split(root_dir)
+ parent_dir, base2 = os.path.split(parent_dir)
+ if base != 'isolate' or base2 != 'data':
+ print 'Invalid root dir %s' % root_dir
+ return 4
+
+ open(os.path.join(parent_dir, 'isolate.py'), 'r').close()
+ return 0
+
+
+if __name__ == '__main__':
+ sys.exit(main())
« no previous file with comments | « tools/isolate/data/isolate/touch_root.isolate ('k') | tools/isolate/data/isolate/with_flag.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698