Index: scripts/slave/recipes/skia/swarm_trigger.expected/Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Swarming.json |
diff --git a/scripts/slave/recipes/skia/swarm_trigger.expected/Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Swarming.json b/scripts/slave/recipes/skia/swarm_trigger.expected/Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Swarming.json |
index 0ad42864ed34bce36596417eeb0c30740a8d908c..2b03240fe2144659c07e5ce46bdd2c0c865db00d 100644 |
--- a/scripts/slave/recipes/skia/swarm_trigger.expected/Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Swarming.json |
+++ b/scripts/slave/recipes/skia/swarm_trigger.expected/Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Swarming.json |
@@ -475,7 +475,7 @@ |
"cmd": [ |
"python", |
"-u", |
- "\nimport json\nimport sys\nwith open(sys.argv[1]) as f:\n isolated = json.load(f)\nfor h in sys.argv[2:]:\n isolated['includes'].append(h)\nwith open(sys.argv[1], 'w') as f:\n json.dump(isolated, f, sort_keys=True)\n", |
+ "\nimport json\nimport sys\nwith open(sys.argv[1]) as f:\n isolated = json.load(f)\nif not isolated.get('includes'):\n isolated['includes'] = []\nfor h in sys.argv[2:]:\n isolated['includes'].append(h)\nwith open(sys.argv[1], 'w') as f:\n json.dump(isolated, f, sort_keys=True)\n", |
"[SLAVE_BUILD]/swarming_temp_dir/skia-task-compile_skia.isolated", |
"[dummy hash for isolate_recipes]", |
"705384d88f80da637eb367e5acc6f315c0e1db2f" |
@@ -487,6 +487,8 @@ |
"@@@STEP_LOG_LINE@python.inline@import sys@@@", |
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1]) as f:@@@", |
"@@@STEP_LOG_LINE@python.inline@ isolated = json.load(f)@@@", |
+ "@@@STEP_LOG_LINE@python.inline@if not isolated.get('includes'):@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ isolated['includes'] = []@@@", |
"@@@STEP_LOG_LINE@python.inline@for h in sys.argv[2:]:@@@", |
"@@@STEP_LOG_LINE@python.inline@ isolated['includes'].append(h)@@@", |
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@", |
@@ -767,7 +769,7 @@ |
"cmd": [ |
"python", |
"-u", |
- "\nimport json\nimport sys\nwith open(sys.argv[1]) as f:\n isolated = json.load(f)\nfor h in sys.argv[2:]:\n isolated['includes'].append(h)\nwith open(sys.argv[1], 'w') as f:\n json.dump(isolated, f, sort_keys=True)\n", |
+ "\nimport json\nimport sys\nwith open(sys.argv[1]) as f:\n isolated = json.load(f)\nif not isolated.get('includes'):\n isolated['includes'] = []\nfor h in sys.argv[2:]:\n isolated['includes'].append(h)\nwith open(sys.argv[1], 'w') as f:\n json.dump(isolated, f, sort_keys=True)\n", |
"[SLAVE_BUILD]/swarming_temp_dir/skia-task-test_skia.isolated", |
"[dummy hash for isolate_recipes]", |
"abc123" |
@@ -779,6 +781,8 @@ |
"@@@STEP_LOG_LINE@python.inline@import sys@@@", |
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1]) as f:@@@", |
"@@@STEP_LOG_LINE@python.inline@ isolated = json.load(f)@@@", |
+ "@@@STEP_LOG_LINE@python.inline@if not isolated.get('includes'):@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ isolated['includes'] = []@@@", |
"@@@STEP_LOG_LINE@python.inline@for h in sys.argv[2:]:@@@", |
"@@@STEP_LOG_LINE@python.inline@ isolated['includes'].append(h)@@@", |
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@", |