aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-04-11 10:32:11 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-04-11 10:46:51 -0700
commite8bced7db8cf327837327a323ade173627a035cb (patch)
tree3a5f445f5dd4013613913703430b1aa9f0ba19e4
parent33b225616c69962dbb7bfc31db271d2c74c8e7a5 (diff)
Fix codegen test under gcov config
-rw-r--r--src/ruby/spec/pb/package_with_underscore/checker_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ruby/spec/pb/package_with_underscore/checker_spec.rb b/src/ruby/spec/pb/package_with_underscore/checker_spec.rb
index 6155b3b934..dac7c14a9a 100644
--- a/src/ruby/spec/pb/package_with_underscore/checker_spec.rb
+++ b/src/ruby/spec/pb/package_with_underscore/checker_spec.rb
@@ -15,16 +15,13 @@
require 'open3'
require 'tmpdir'
-def debug_mode?
- !ENV['CONFIG'].nil? && ENV['CONFIG'] == 'dbg'
-end
-
describe 'Package with underscore protobuf code generation' do
it 'should have the same content as created by code generation' do
root_dir = File.join(File.dirname(__FILE__), '..', '..', '..', '..', '..')
pb_dir = File.join(root_dir, 'src', 'ruby', 'spec', 'pb')
- bins_sub_dir = debug_mode? ? 'dbg' : 'opt'
+ fail 'CONFIG env variable unexpectedly unset' unless ENV['CONFIG']
+ bins_sub_dir = ENV['CONFIG']
bins_dir = File.join(root_dir, 'bins', bins_sub_dir)
plugin = File.join(bins_dir, 'grpc_ruby_plugin')