Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant