old_contents: #!/usr/bin/env python
  # This is a workaround for liburdf.so throwing an exception and killing
  # the process on exit in ROS Indigo.
  
  import subprocess
  import os
  import sys
  
  tests = ['core.py',
           'valkyrie_com.py' #,
          # 'valkyrie_collision_check_fcl_default.py',
          # 'valkyrie_collision_check_fcl_latest.py'
          ]
  
  for test in tests:
      process=subprocess.Popen(['rosrun', 'exotica_python', test],stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      output = process.stdout.readlines()
      print(''.join(output))
      if output[-1][0:11]!='>>SUCCESS<<':
          print('Test '+test+' failed\n'+process.stderr.read())
          os._exit(1)
  
new_contents: #!/usr/bin/env python
  # This is a workaround for liburdf.so throwing an exception and killing
  # the process on exit in ROS Indigo.
  
  import subprocess
  import os
  import sys
  
  tests = ['core.py',
           'valkyrie_com.py',
           'valkyrie_collision_check_fcl_default.py',
           'valkyrie_collision_check_fcl_latest.py'
          ]
  
  for test in tests:
      process=subprocess.Popen(['rosrun', 'exotica_python', test],stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      output = process.stdout.readlines()
      print(''.join(output))
      if output[-1][0:11]!='>>SUCCESS<<':
          print('Test '+test+' failed\n'+process.stderr.read())
          os._exit(1)
  
subject: Enable Valkyrie collision checking tests