File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 56
56
klass = "Annotate::Validations::#{ base_dir . gsub ( '.' , '_' ) . classify } " . constantize
57
57
58
58
Dir . chdir ( temp_dir ) do
59
- output = `
60
- (
61
- export AUTOMATED_TEST="#{ BASEDIR } "
62
-
63
- # First, make sure we're not in 'sh' mode (I.E. strict-superset-of-Bourne
64
- # mode), as RVM doesn't like this...
65
- shopt -u -o posix
66
-
67
- source .rvmrc &&
68
- #{ klass . test_commands }
69
- ) 2>&1` . chomp
59
+ # bash is required by rvm
60
+ # the shopt command forces us out of "strict sh" mode
61
+ commands = <<-BASH
62
+ export AUTOMATED_TEST="#{ BASEDIR } ";
63
+ shopt -u -o posix;
64
+ source .rvmrc &&
65
+ (bundle check || bundle install) &&
66
+ #{ klass . test_commands }
67
+ BASH
68
+ output = `/usr/bin/env bash -c '#{ commands } ' 2>&1` . chomp
70
69
klass . verify_output ( output )
71
70
klass . verify_files ( test_rig )
72
71
end
You can’t perform that action at this time.
0 commit comments