Home | History | Annotate | Download | only in result_tools
      1 # Copyright 2017 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 
      6 SIZE = 10
      7 
      8 def create_file(path, size=SIZE):
      9     """Create a temp file at given path with the given size.
     10 
     11     @param path: Path to the temp file.
     12     @param size: Size of the temp file, default to SIZE.
     13     """
     14     with open(path, 'w') as f:
     15         f.write('A' * size)