oats 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -11,5 +11,11 @@ unless defined?(OATS_GEM_IS_ALREADY_INCLUDED)
11
11
  end
12
12
  test_gemfile = $oats_execution['options'][ "_:gemfile"] if $oats_execution and $oats_execution['options']
13
13
  test_gemfile ||= ENV['OATS_TESTS'] + '/Gemfile'
14
- eval(IO.read(test_gemfile), binding) if File.exist?(test_gemfile)
14
+ puts "AUT Gemfile :" + test_gemfile
15
+ if File.exist?(test_gemfile)
16
+ puts "Including AUT Gemfile: " + test_gemfile
17
+ eval(IO.read(test_gemfile), binding)
18
+ end
19
+
20
+
15
21
  end
data/bin/agent CHANGED
@@ -62,17 +62,8 @@ function fkill {
62
62
  {
63
63
  agent_echo "$0 $input_pars"
64
64
 
65
- if [ -n "$(echo "$GEM_HOME" | grep ruby-1.9.2)" ]; then
66
- # If spawned from OCC, running 1.9.2, we need to switch to 1.8 since
67
- # can't run oauth in 1.9.2. Assume RVM is installed and the system ruby is 1.8.X
68
- if [ -n "$(echo "$rvm_ruby_global_gems_path" | grep ruby-1.9.2)" ] && [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
69
- source "$HOME/.rvm/scripts/rvm" # Load RVM function
70
- rvm system
71
- fi
72
- fi
73
- # Need these off when called by OCC
74
- unset BUNDLE_BIN_PATH BUNDLE_GEMFILE GEM_HOME GEM_PATH MY_RUBY_HOME # RAILS_ENV
75
- unset RUBYOPT
65
+ # Need these off when called by OCC, otherwise they OCC values are inherited
66
+ unset RUBYOPT BUNDLE_BIN_PATH BUNDLE_GEMFILE # GEM_HOME GEM_PATH # RAILS_ENV
76
67
  if [ -z "$OATS_HOME" ]; then
77
68
  cd $(dirname $(type -p $0))/..
78
69
  OATS_HOME=$PWD
data/bin/oats CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  dir = File.dirname(__FILE__)
4
- $:.push File.expand_path('../lib', dir )
4
+ $:.unshift File.expand_path('../lib', dir )
5
5
  require 'oats'
6
6
  if $oats_execution['options']["_:agent"]
7
7
  Oats::Driver.agent
data/lib/oats/driver.rb CHANGED
@@ -149,7 +149,7 @@ module Oats
149
149
  $log.info "Started OATS execution [#{Oats.context['jobid']}] at #{Time.now}"
150
150
  end
151
151
  begin
152
- Oats.info "Tests Root Directory: " + ENV['OATS_TESTS']
152
+ Oats.info "OATS_TESTS Directory: " + ENV['OATS_TESTS']
153
153
  oats_data['_']['environments'] = [] # Keep track of variations stack
154
154
  Driver.process_test_yaml(oats_data)
155
155
  Report.results($oats_info['test_files'])
data/lib/oats/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oats
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oats
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Levent Atasoy