old_contents: # Copyright (c) 2015,2016, UT-BATTELLE, LLC
  # All rights reserved.
  #
  # Redistribution and use in source and binary forms, with or without
  # modification, are permitted provided that the following conditions are met:
  #
  # 1. Redistributions of source code must retain the above copyright notice, this
  # list of conditions and the following disclaimer.
  #
  # 2. Redistributions in binary form must reproduce the above copyright notice,
  # this list of conditions and the following disclaimer in the documentation
  # and/or other materials provided with the distribution.
  #
  # 3. Neither the name of the copyright holder nor the names of its contributors
  # may be used to endorse or promote products derived from this software without
  # specific prior written permission.
  #
  # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  """
  Provides functions for scheduling the runs of tests.
  """
  from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  
  import multiprocessing
  
  import livvkit
  import livvkit.components.numerics
  import livvkit.components.verification
  import livvkit.components.performance
  import livvkit.components.validation
  
  
  def run(run_type, module, config):
      """
      Collects the analyses cases to be run and launches processes for each of
      them.
  
      Args:
          run_type: A string representation of the run type (eg. verification)
          module: The module corresponding to the run.  Must have a run_suite function
          config_path: The configuration for the module
      """
      tests = [t for t in six.iterkeys(config) if isinstance(config[t], dict)]
      print(" -----------------------------------------------------------------")
      print("   Beginning " + run_type.lower() + " test suite ")
      print(" -----------------------------------------------------------------")
      print("")
      summary = launch_processes(tests, module, **config)
      print(" -----------------------------------------------------------------")
      print("   " + run_type.capitalize() + " test suite complete ")
      print(" -----------------------------------------------------------------")
      print("")
      return summary
  
  
  def launch_processes(tests, run_module, **config):
      """ Helper method to launch processes and synch output """
      livvkit.manager = multiprocessing.Manager()
      test_data = livvkit.manager.dict()
      summary = run_module._populate_metadata()
      print(tests[0])
      process_handles = [multiprocessing.Process(target=run_module._run_suite,
                         args=(test, config[test], test_data)) for test in tests]
      for p in process_handles:
          p.start()
      for p in process_handles:
          p.join()
      summary["Data"] = dict(test_data)
      return summary
  
new_contents: # Copyright (c) 2015,2016, UT-BATTELLE, LLC
  # All rights reserved.
  #
  # Redistribution and use in source and binary forms, with or without
  # modification, are permitted provided that the following conditions are met:
  #
  # 1. Redistributions of source code must retain the above copyright notice, this
  # list of conditions and the following disclaimer.
  #
  # 2. Redistributions in binary form must reproduce the above copyright notice,
  # this list of conditions and the following disclaimer in the documentation
  # and/or other materials provided with the distribution.
  #
  # 3. Neither the name of the copyright holder nor the names of its contributors
  # may be used to endorse or promote products derived from this software without
  # specific prior written permission.
  #
  # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  """
  Provides functions for scheduling the runs of tests.
  """
  from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  
  import multiprocessing
  
  import livvkit
  import livvkit.components.numerics
  import livvkit.components.verification
  import livvkit.components.performance
  import livvkit.components.validation
  
  
  def run(run_type, module, config):
      """
      Collects the analyses cases to be run and launches processes for each of
      them.
  
      Args:
          run_type: A string representation of the run type (eg. verification)
          module: The module corresponding to the run.  Must have a run_suite function
          config_path: The configuration for the module
      """
      tests = [t for t in six.iterkeys(config) if isinstance(config[t], dict)]
      print(" -----------------------------------------------------------------")
      print("   Beginning " + run_type.lower() + " test suite ")
      print(" -----------------------------------------------------------------")
      print("")
      summary = launch_processes(tests, module, **config)
      print(" -----------------------------------------------------------------")
      print("   " + run_type.capitalize() + " test suite complete ")
      print(" -----------------------------------------------------------------")
      print("")
      return summary
  
  
  def launch_processes(tests, run_module, **config):
      """ Helper method to launch processes and synch output """
      livvkit.manager = multiprocessing.Manager()
      test_data = livvkit.manager.dict()
      summary = run_module._populate_metadata()
      process_handles = [multiprocessing.Process(target=run_module._run_suite,
                         args=(test, config[test], test_data)) for test in tests]
      for p in process_handles:
          p.start()
      for p in process_handles:
          p.join()
      summary["Data"] = dict(test_data)
      return summary
  
subject: Remove errant print statement