예제 #1
0
     [
         os.path.join('files1', 'subdir', '42.txt'),
         os.path.join('test', 'data', 'foo.txt'),
         'split.py',
     ],
 ),
 'symlink_full': (
     {
         'tests/isolate/files1/subdir/42.txt':
         'the answer to life the universe and everything\n',
         'tests/isolate/files1/test_file1.txt':
         'Foo\n',
         'tests/isolate/files1/test_file2.txt':
         'Bar\n',
         'tests/isolate/files2':
         test_utils.SymLink('files1'),
         'tests/isolate/symlink_full.isolate':
         """{
       'conditions': [
         ['(OS=="linux" and chromeos==1) or ((OS=="mac" or OS=="win") and '
          'chromeos==0)', {
           'variables': {
             'command': ['python', 'symlink_full.py'],
             'files': ['files2/', 'symlink_full.py'],
           },
         }],
       ],
     }""",
         'tests/isolate/symlink_full.py':
         """if __name__ == '__main__':
     import os, sys
예제 #2
0
     'tests/isolate/split.py': "import sys; sys.exit(1)",
     'tests/isolate/test/data/foo.txt': 'Split',
   },
   [
     os.path.join('files1', 'subdir', '42.txt'),
     os.path.join('test', 'data', 'foo.txt'),
     'split.py',
   ],
 ),
 'symlink_full': (
   {
     'tests/isolate/files1/subdir/42.txt':
         'the answer to life the universe and everything\n',
     'tests/isolate/files1/test_file1.txt': 'Foo\n',
     'tests/isolate/files1/test_file2.txt': 'Bar\n',
     'tests/isolate/files2': test_utils.SymLink('files1'),
     'tests/isolate/symlink_full.isolate':
       """{
         'conditions': [
           ['(OS=="linux" and chromeos==1) or ((OS=="mac" or OS=="win") and '
            'chromeos==0)', {
             'variables': {
               'command': ['python', 'symlink_full.py'],
               'files': ['files2/', 'symlink_full.py'],
             },
           }],
         ],
       }""",
     'tests/isolate/symlink_full.py':
       """if __name__ == '__main__':
       import os, sys