sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28278
[Bug 1370113] Re: [1.0.1] Mac: Sikuli ignores X11 DISPLAY variable on remote machine run via ssh
So all I am trying to do is run a few tests on a MAC laptop, which of
course has a screen as is permanently logged in. If I can get this to
work on the actual Jenkins server, which is also OSX, and permanently
logged in thats fine.
I have tried wrapping up the commands in a shell script, but that didn't
work either.
If I run the script manually, its fine, but its the moment Jenkins tries
to execute or if I try to mimic what Jenkins is doing (i.e. launch SSH
session ,etc) it just doesn't work (hence the defect).
I haven't figured out how to get Jenkins to 'execute' the command as if
I were at the terminal myself.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1370113
Title:
[1.0.1] Mac: Sikuli ignores X11 DISPLAY variable on remote machine
run via ssh
Status in Sikuli:
In Progress
Bug description:
System details are:
Host machine : OSX 10.9.2 (where i am trying to run the tests FROM)
Destination machine: OSX 10.9.2 (where I want the tests to execute ON)
Version 1.0.1
I have built the setup jar with the and IDE and without (no IDE and
option of executing on the command line)
Hi, I am trying to run a sikuli script I have written from another
machine (all the scripts and the jars, etc exist on the remote
host...I can run them fine If i am sat at the machine)
Before running the commands i export the display...
export DISPLAY=:0.0
I ssh in, and cd into the directory and run the following command....
java -jar /Users/admin/Documents/Sikuli/sikuli-script.jar
Scripts/End2End.sikuli
I see...
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:180)
at org.sikuli.basics.MultiFrame.<init>(MultiFrame.java:29)
at org.sikuli.basics.SikuliX.displaySplash(SikuliX.java:109)
at org.sikuli.basics.SikuliScript.main(SikuliScript.java:39)
I also tried....
/Applications/SikuliX-IDE.app/Contents/runIDE -r "End2End.sikuli" --args superbobc
But that gives me the same.
On another note, when I try to launch another app, i.e. TextEdit....
/Applications/TextEdit.app/Contents/MacOS/TextEdit
works fine, I can see it fire up
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1370113/+subscriptions
References