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

Unified Diff: tests/isolate/touch_root.py

Issue 11048019: Add everything from src/tools/isolate r159537. (Closed) Base URL: https://git.chromium.org/chromium/tools/swarm_client.git@master
Patch Set: Ensure --similarity is sticky 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
« no previous file with comments | « tests/isolate/touch_root.isolate ('k') | tests/isolate/with_flag.isolate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/touch_root.py
diff --git a/tests/isolate/touch_root.py b/tests/isolate/touch_root.py
new file mode 100755
index 0000000000000000000000000000000000000000..ddae3a6ca7b78a5c6f9046a03bc1a950a28a66f0
--- /dev/null
+++ b/tests/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 != 'tests':
+ 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 | « tests/isolate/touch_root.isolate ('k') | tests/isolate/with_flag.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698