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

Unified Diff: infra/bots/add_isolated_input.py

Issue 1827413002: Fixes for Swarming recipes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reinstate tmp_dir Created 4 years, 9 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 | « no previous file | infra/bots/common.py » ('j') | infra/bots/common.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/add_isolated_input.py
diff --git a/infra/bots/add_isolated_input.py b/infra/bots/add_isolated_input.py
deleted file mode 100644
index 70bde6d7acf5087487de0b00d976eb7b72d8fb23..0000000000000000000000000000000000000000
--- a/infra/bots/add_isolated_input.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2016 Google Inc.
-#
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-import argparse
-import json
-
-
-"""Add the given hash to the includes section of the given isolated file."""
-
-
-def add_isolated_hash(isolated_file, hash_str):
- with open(isolated_file) as f:
- isolated = json.load(f)
- isolated['includes'].append(hash_str)
- with open(isolated_file, 'w') as f:
- json.dump(isolated, f, sort_keys=True)
-
-
-def main():
- parser = argparse.ArgumentParser()
- parser.add_argument('--isolated_file', required=True)
- parser.add_argument('--hash', required=True)
- args = parser.parse_args()
- add_isolated_hash(args.isolated_file, args.hash)
-
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « no previous file | infra/bots/common.py » ('j') | infra/bots/common.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698