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

Problem with paths includeing whitespace #3

Open
aslakjo opened this issue Jun 24, 2010 · 3 comments
Open

Problem with paths includeing whitespace #3

aslakjo opened this issue Jun 24, 2010 · 3 comments

Comments

@aslakjo
Copy link

aslakjo commented Jun 24, 2010

Hi

We are using cuke4nuke, which is using systemu. Today we moved to a new server. On this new server our teamcity installation is placed under program files. This fact seemed to make some trouble for systemu. And the rest of the CI(contious integration)-server.

After some debugging i found that this is the parameter to IO.popen in the systemu method:
"C:/Program Files/TeamCity/buildAgent/temp/buildTmp/systemu_OSLHK-I050_0_4452_0.0249346645890749_1/program"

Which is the source of the following stack trace.
Error:
C:/Ruby187/bin/ruby.exe: No such file or directory -- C:/Program (LoadError)C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:85: wtf? (RuntimeError)
from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:72:in popen' from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:72 from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:160:inquietly'
from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:70
from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:224:in call' from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:224:intmpdir'
from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:209:in loop' from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:209:intmpdir'
from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:63:in systemu' from C:/Ruby187/lib/ruby/gems/1.8/gems/systemu-1.2.0/lib/systemu.rb:10:insystemu'
from C:/Ruby187/lib/ruby/gems/1.8/gems/cuke4nuke-aslakjo-0.3.5/bin/../lib/cuke4nuke/main.rb:53:in launch_cucumber' from C:/Ruby187/lib/ruby/gems/1.8/gems/cuke4nuke-aslakjo-0.3.5/bin/../lib/cuke4nuke/main.rb:25:inrun'
from C:/Ruby187/lib/ruby/gems/1.8/gems/cuke4nuke-aslakjo-0.3.5/bin/cuke4nuke:6
from C:/Ruby187/bin/cuke4nuke:19:in `load' from C:/Ruby187/bin/cuke4nuke:19

I fixed this by altering:
IO.popen "#{ @ruby } #{ c['program'] }", 'r+' do |pipe|
To:
IO.popen "#{ @ruby } "#{ c['program'] }"", 'r+' do |pipe|

This solved our issue.

@aslakjo
Copy link
Author

aslakjo commented Jun 24, 2010

I have commited the patch on my fork : http://github.com/aslakjo/systemu/commit/aaac375e3daba66869e88175e089368136da0d6a

But since I am in a windows only environment at the moment :( I am not able to test this patch on all platforms. Pull and use the patch if it meets your requirements.

@ahoward
Copy link
Owner

ahoward commented Jun 24, 2010

see if the latest commit fixes your problem please. i cannot test on windoze.

@aslakjo
Copy link
Author

aslakjo commented Jun 24, 2010

Thanks for the quick reply!

The patch looks good. I'll see if it works I practise tomorrow.

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

2 participants