OLD | NEW |
| (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 'child_touch_root: Verify the relative directories' | |
12 root_dir = os.path.dirname(os.path.abspath(__file__)) | |
13 parent_dir, base = os.path.split(root_dir) | |
14 parent_dir, base2 = os.path.split(parent_dir) | |
15 if base != 'isolate' or base2 != 'tests': | |
16 print 'Invalid root dir %s' % root_dir | |
17 return 4 | |
18 | |
19 open(os.path.join(parent_dir, 'isolate.py'), 'r').close() | |
20 return 0 | |
21 | |
22 | |
23 if __name__ == '__main__': | |
24 sys.exit(main()) | |
OLD | NEW |