$: << 'cf_spec'
require 'cf_spec_helper'
require 'open3'

describe 'python unit tests' do
  let(:python_unit_test_command) { './run_tests.sh' }

  it "should all pass" do
    _, stdout, stderr, wait_thr = Open3.popen3(python_unit_test_command)
    exit_status = wait_thr.value
    unless exit_status.success?
      puts "Python Unit Tests stdout:"
      puts stdout.read
      puts "Python Unit Tests stderr:"
      puts stderr.read
    end
    expect(wait_thr.value).to eq(0)
  end
end

Add rspec test that runs python unit test suite
Add rspec test that runs python unit test suite

- Prints unit test suite stdout and stderr in failure case

Signed-off-by: David Jahn <ea2208fe99a56ed20c9ae20b0a1446b61f13a269@gmail.com>
