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

Side by Side Diff: scripts/slave/unittests/slave_utils_unittest.py

Issue 10035003: Split up Each Swarm Test into Two Steps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Adding tests to presubmit Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 import os 7 import os
8 import sys 8 import sys
9 import unittest 9 import unittest
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 sample = {'factory_properties': {'gclient_env': { 'GYP_DEFINES' : 77 sample = {'factory_properties': {'gclient_env': { 'GYP_DEFINES' :
78 'tiger=1 buffalo=0 giraffe' }}} 78 'tiger=1 buffalo=0 giraffe' }}}
79 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'tiger')) 79 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'tiger'))
80 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'buffalo')) 80 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'buffalo'))
81 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'giraffe')) 81 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'giraffe'))
82 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'monkey')) 82 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'monkey'))
83 83
84 84
85 if __name__ == '__main__': 85 if __name__ == '__main__':
86 unittest.main() 86 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698