← Back to team overview

sikuli-driver team mailing list archive

[Bug 687559] Re: 0.10.2 --args not working with Sikuli JUnit tests?

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

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

Title:
  0.10.2 --args not working with Sikuli JUnit tests?

Status in Sikuli:
  Fix Released

Bug description:
  I have a working Sikuli JUnit test script, test.py.  In the top indent
  level, I have this code:

  for arg in sys.argv:
          print arg

  If I invoke it like so, it prints all the args:

  sikuli-ide.sh -r test.sikuli/ --args arg1 arg2 arg3

  However, when I try to run it as a JUnit test, I get no printing of
  args:

  sikuli-ide.sh -t test.sikuli/ --args arg1 arg2 arg3

  I even tried inserting the arg-printing code block into my one test
  method, which is invoked by the JUnit framework, and it prints
  nothing, indicating that it sees no args (or empty args).

  Should it be possible to pass args to a JUnit-enabled Sikuli script?
  Am I doing something wrong, or is this a bug?