old_contents: """Unit tests for the javascript code."""
  
  __author__ = 'John Orr (jorr@google.com)'
  
  
  import subprocess
  import unittest
  
  
  class AllJavaScriptTests(unittest.TestCase):
  
      def test_all(self):
          subprocess.call([
              'karma', 'start',
              'experimental/coursebuilder/tests/unit/karma.conf.js'])
  
new_contents: """Unit tests for the javascript code."""
  
  __author__ = 'John Orr (jorr@google.com)'
  
  
  import subprocess
  import unittest
  
  
  class AllJavaScriptTests(unittest.TestCase):
  
      def test_all(self):
          retcode = subprocess.call([
              'karma', 'start',
              'experimental/coursebuilder/tests/unit/karma.conf.js'])
          self.assertEqual(retcode, 0)
  
subject: Make the python wrapper for Karma tests count failing tests as failures. Change on 2013/07/31 by jorr <jorr@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=50196748