Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363586 - Running external command always exits with code '1'
Summary: Running external command always exits with code '1'
Status: CLOSED WORKSFORME
Alias: None
Product: Jubula
Classification: Technology
Component: Core (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: Indigo SR2   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 09:52 EST by Anders Forsell CLA
Modified: 2011-11-11 10:56 EST (History)
1 user (show)

See Also:


Attachments
Screenshots showing the problem (177.06 KB, application/x-zip-compressed)
2011-11-11 09:52 EST, Anders Forsell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Forsell CLA 2011-11-11 09:52:12 EST
Created attachment 206847 [details]
Screenshots showing the problem

We have a problem when running an external command in that it always returns with exit code '1' according to Jubula. We have verified this by creating a simple CMD script with a single line "EXIT 0".
See also the attached screenshots.
Comment 1 Alexandra Schladebeck CLA 2011-11-11 10:56:57 EST
Having looked at the screenshots, I believe this is a problem with the space in the command. You will have to use double quotes as well as the single quotes to make the space in the command be interpreted properly (single quotes on the outside, double on the inside). The documentation for white spaces in commands is here:

http://help.eclipse.org/indigo/topic/org.eclipse.jubula.client.ua.help/html/reference/node13.html

(Search for "Execute external command")

The single quotes are necessary to mask the backslash, the double quotes to mask the space. I tested this on my system with the following:

1. Single quotes and no spaces in the path: successful
2. Single quotes and spaces in the path: failure
3. Single and double quotes with spaces in the path: successful.

I'm going to close the ticket as works for me, but if you continue to have problems, please reopen it with the additional information.