Unable to run testscript from command line due to spaces in path

Asked by Henk Noppe

Step by step I get futher on the road of UnitTesting in Sikuli. The problem I now have is that a script is not running on the commandline because there are spaces in the path. I search the bug/answers list and found https://bugs.launchpad.net/sikuli/+bug/851040
I applied this change in the sikuli-ide.sh, but unfortunatly it does not work. Is there an other way around this? The script is running just fine when it is run in the IDE.

I do not get any error on the commandline. It looks like Sikuli is not even started. The command I use is eg. /Applications/Sikuli-IDE.app/sikuli-ide.sh -t /Users/Henk/Documents/OmniHis/Local\ Repositories/Scipio/Sikuli\ TestScripts/Agenda/4756\ Afspraken_tekst\ invoeren/Mac/testInvoerenAfspraak.sikuli/

I copy the file to my desktop and use the following command it runs just fine:
/Applications/Sikuli-IDE.app/sikuli-ide.sh -t /Users/Henk/Desktop/Afspraken_tekstinvoerenTestScriptMac.sikuli

For the record I use OS X 10.6.8 and Sikuli 1.0R3 (r905)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Henk Noppe
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I think it is more a problem with bug 867636.

So I really recommend to leave Sikuli IDE unit test feature behind (including option -t on command line( and switch to using Python unit test directly (see faq 1804) .... it is only adding for lines of code and indentation for the def()'s ;-)

Revision history for this message
Henk Noppe (henk-n) said :
#2

ok, Thank you very much. I will use the python way!