Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options without values not handled #9

Open
Gughi25 opened this issue Dec 2, 2014 · 1 comment
Open

options without values not handled #9

Gughi25 opened this issue Dec 2, 2014 · 1 comment

Comments

@Gughi25
Copy link

Gughi25 commented Dec 2, 2014

I have to add options like --ssl and --ssl-no-reuse, I tried to write into the config file the following:
httperf_ssl (doesn't see it)
httperf_ssl = (httperf: option '--ssl' doesn't allow an argument)
httperf_ssl = nil (httperf: option '--ssl' doesn't allow an argument)
httperf_ssl = "nil" (httperf: option '--ssl' doesn't allow an argument)

I don't know if I'm doing something wrong...
I've never used ruby before but the httperf.rb line
'''
httperf_opt = conf.keys.grep(/httperf/).collect {|k| conf[k] == "nil" ? "--#{k.gsub(/httperf_/, '')}" : "--#{k.gsub(/httperf_/, '')}=#{conf[k]}"}.join(" ")
'''
looks fine to me, maybe it's something into the mp_perf.rb parsing function

@Gughi25
Copy link
Author

Gughi25 commented Dec 2, 2014

found the error. It should be
|k| conf[k] == nil
or
|k| "#{conf[k]}" == "nil"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant