← Back to team overview

sikuli-driver team mailing list archive

[Bug 1224481] Re: [1.0.1 ok] ScriptJython: exitcode not returned to commandline when using exit(n)

 

this what I get with this Ant file:

<?xml version="1.0" encoding="UTF-8"?>
<project name="build-mac-app" default="all">
<target name="all">
  <exec executable="/bin/bash" dir="." resultproperty="isGood">
      <arg line="runScript -r /Users/rhocke/test"/>
  </exec>
  <echo message="[Ant] The deployment process exit code is ${isGood}"/>
</target>
</project>

--- output
all:
     [exec] running SikuliX-Script: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine 
     [exec] -jar ./sikuli-script.jar -r /Users/rhocke/test
     [exec] [info] Exit code: 23
     [exec] Result: 23
     [echo] [Ant] The deployment process exit code is 23

I had to leave out the failonerror, since with a returncode >0 the build
would fail and not print the message.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1224481

Title:
  [1.0.1 ok] ScriptJython: exitcode not returned to commandline when
  using exit(n)

Status in Sikuli:
  Fix Committed

Bug description:
  ----- fixed with version 1.0.1 per September 12 at 5 pm gmt+1
  repeat setup after this time to get the fixed version
  tested on Mac, but should work on Win/Linux too
  ----------------------------------------------------------
  I try to stop the sikuli process with error exit code by call the api sys.exit(2).

  But it throws an exception

       [exec] Traceback (most recent call last):
       [exec]   File "C:\Users\user\Desktop\scripts_folder\deployment.sikuli\deployment.py", line 100, in <module>
       [exec]     sys.exit(2)
       [exec] Sy

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1224481/+subscriptions


References