Lines Matching refs:f
38 raise ValueError(f'Invalid product name: {self}')
91 with open(os.path.join(out_dir, 'build.log'), 'wb') as f:
101 f'{os.path.abspath(out_dir)}:{os.path.abspath("out")}',
122 *args, stdout=f, stderr=subprocess.STDOUT, env=env)
163 with open(os.path.join(results_folder, name)+'.diff', 'wb') as f:
168 stdout=f, stderr=subprocess.STDOUT)).wait())
183 …return f'<td style="background-color: {"lightgreen" if success and not diffs else "salmon"}">{mess…
186 return f'''
219 with open(path, 'r') as f:
220 print(f'{path}:', file=sys.stderr)
221 for line in itertools.islice(f, 200):
223 if next(f, None) != None:
234 f'TARGET_PRODUCT={product.product}',
235 f'TARGET_RELEASE={product.release}',
236 f'TARGET_BUILD_VARIANT={product.variant}',
239 f'TARGET_PRODUCT={product.product}',
240 f'TARGET_RELEASE={product.release}',
241 f'TARGET_BUILD_VARIANT={product.variant}',
253 f'{product_dashboard_folder}/baseline/build.log')
256 f'{product_dashboard_folder}/product/build.log')
258 with open(f'{product_dashboard_folder}/product/build.log', 'r') as f:
259 if '/out/rbc/' in f.read():
262 with open(f'{product_dashboard_folder}/product/build.log', 'a') as f:
263 f.write(f'\nPaths involving out/rbc are actually under {dirs.out_product}\n')
265 …files = [f'build-{product.product}.ninja', f'build-{product.product}-package.ninja', f'soong/build…
303 f'{product_dashboard_folder}/baseline/build.log')
306 f'{product_dashboard_folder}/product/build.log')
308 with open(f'{product_dashboard_folder}/product/build.log', 'r') as f:
309 if '/out/rbc/' in f.read():
312 with open(f'{product_dashboard_folder}/product/build.log', 'a') as f:
313 f.write(f'\nPaths involving out/rbc are actually under {dirs.out_product}\n')
353 sys.exit(f'Invalid product name: {p}. Example: aosp_arm64-trunk_staging-userdebug')
372 sys.exit(f'Product {product.product} cannot be repeated.')
412 with open(os.path.join(dirs.results, 'index.html'), 'w') as f:
413 f.write(f'''
424 f.flush()
428 …print(f'{"Current product":31.31} | {"Time Elapsed":>16} | {"Per each":>8} | {"ETA":>16} | Status')
438 …print(f'{f"{i+1}/{len(products)} {product}":31.31} | {elapsed_time_str:>16} | {time_per_product_st…
440 …print(f'{f"{i+1}/{len(products)} {product}":31.31} | {"":>16} | {"":>8} | {"":>16} | ', end='', fl…
454 f.write(generate_html_row(i+1, result))
455 f.flush()
459 f.write(f'''
492 product_str = "\n ".join([f"{x.product}" for x in baseline_failures])
493 …print(f"These products fail to run (Make-based) product config:\n {product_str}\nFirst failure:",…