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

Unified Diff: builder_test.py

Issue 6305004: Modify devserver and gmerge to be friendlier (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/dev-util.git@master
Patch Set: Numerous code review fixes. Added --USE flag as well Created 9 years, 11 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 | « builder.py ('k') | devserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: builder_test.py
diff --git a/builder_test.py b/builder_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..a6f291e90ecc173af0dc2aca2bc13aa7b38d4de3
--- /dev/null
+++ b/builder_test.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+import subprocess
+import unittest
+
+import builder
+
+
+class BuilderTest(unittest.TestCase):
+ def testOutputOf(self):
+ self.assertRaises(subprocess.CalledProcessError,
+ builder._OutputOf, ['/bin/false'])
+
+ hello = 'hello, world'
+ self.assertEqual(hello + '\n',
+ builder._OutputOf(['/bin/echo', hello]))
+
+
+if __name__ == '__main__':
+ unittest.main()
« no previous file with comments | « builder.py ('k') | devserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698