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

Side by Side Diff: appengine/findit/waterfall/test/swarming_util_test.py

Issue 2312413002: [Findit] Record error if swarming task completes with exit_code as 2. (Closed)
Patch Set: . Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « appengine/findit/waterfall/test/process_swarming_task_result_pipeline_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import collections 5 import collections
6 import json 6 import json
7 import os 7 import os
8 import urllib 8 import urllib
9 import zlib 9 import zlib
10 10
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 'valid': True 571 'valid': True
572 } 572 }
573 573
574 self.assertEqual(expected_failure_log, failure_log) 574 self.assertEqual(expected_failure_log, failure_log)
575 575
576 def testGetTagValueInvalidTag(self): 576 def testGetTagValueInvalidTag(self):
577 tags = ['a:1', 'b:2'] 577 tags = ['a:1', 'b:2']
578 self.assertIsNone(swarming_util.GetTagValue(tags, 'c')) 578 self.assertIsNone(swarming_util.GetTagValue(tags, 'c'))
579 579
580 def testGenerateIsolatedDataOutputsrefNone(self): 580 def testGenerateIsolatedDataOutputsrefNone(self):
581 self.assertEqual({}, swarming_util._GenerateIsolatedData(None)) 581 self.assertEqual({}, swarming_util._GenerateIsolatedData(None))
582
583 def testFetchOutputJsonInfoFromIsolatedServerReturnNone(self):
584 self.assertIsNone(swarming_util._FetchOutputJsonInfoFromIsolatedServer(
585 None, self.http_client))
OLDNEW
« no previous file with comments | « appengine/findit/waterfall/test/process_swarming_task_result_pipeline_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698