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

Unified Diff: scripts/slave/recipes/skia/skia.expected/Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Release.json

Issue 1068503002: Skia: Replace get_uploaded_hashes call with inline script (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 8 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
Index: scripts/slave/recipes/skia/skia.expected/Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Release.json
diff --git a/scripts/slave/recipes/skia/skia.expected/Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Release.json b/scripts/slave/recipes/skia/skia.expected/Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Release.json
index 4caa378892b1a61016bd8d8365c278fd572ff8bb..80630e21cb6db2404c01436d0272b3c80ff340ce 100644
--- a/scripts/slave/recipes/skia/skia.expected/Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Release.json
+++ b/scripts/slave/recipes/skia/skia.expected/Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Release.json
@@ -321,13 +321,24 @@
"cmd": [
"python",
"-u",
- "[SLAVE_BUILD]\\skia\\tools\\get_uploaded_hashes.py",
- "chromium-skia-gm",
- "dm-images-v1",
+ "\nimport contextlib\nimport sys\nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/2/_/hashes'\n\nwith open(sys.argv[1], 'w') as f:\n with contextlib.closing(urllib2.urlopen(HASHES_URL)) as w:\n f.write(w.read())\n",
"[SLAVE_BUILD]\\tmp\\uninteresting_hashes.txt"
],
"cwd": "[SLAVE_BUILD]\\skia",
- "name": "get uninteresting hashes"
+ "name": "get uninteresting hashes",
+ "~followup_annotations": [
+ "@@@STEP_LOG_LINE@python.inline@@@@",
+ "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
+ "@@@STEP_LOG_LINE@python.inline@import sys@@@",
+ "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
+ "@@@STEP_LOG_LINE@python.inline@@@@",
+ "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://gold.skia.org/2/_/hashes'@@@",
+ "@@@STEP_LOG_LINE@python.inline@@@@",
+ "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@",
+ "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(urllib2.urlopen(HASHES_URL)) as w:@@@",
+ "@@@STEP_LOG_LINE@python.inline@ f.write(w.read())@@@",
+ "@@@STEP_LOG_END@python.inline@@@"
+ ]
},
{
"cmd": [

Powered by Google App Engine
This is Rietveld 408576698