Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Running Subliminal on Jenkins #40
I'm using Subliminal with latest release versions of dev tools (Xcode 4.6.3, OS X 10.8.4). I use the following script to launch subliminal-test on CLI:
#!/bin/bash # Ensure that `subliminal-test` uses the Xcode 4.6 toolchain export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer # Run the tests in the non-retina iPhone Simulator DEVICE="iPhone" # Run the tests on iOS 6.1 VERSION=6.1 # Allow `subliminal-test` to work around bugs in Apple's `instruments` tool # while running un-attended. See the FAQ for more information. # PASSWORD="xxxxxx" # The password is passed on CLI when this script is run OUTPUT_DIR=reports mkdir -p "$OUTPUT_DIR" # Returns 0 on success, 1 on failure # Log output and screenshots will be placed in $OUTPUT_DIR "$PROJECT_DIR/IntegrationTests/Subliminal/Supporting Files/CI/subliminal-test" \ -project "$YOUR_PROJECT" \ -sim_device "$DEVICE" \ -sim_version "$VERSION" \ -login_password "$PASSWORD" \ -output "$OUTPUT_DIR"
It all works just fine on my local machine's CLI, but when I try to run this script from a Jenkins build phase on a remote Mac, I observe the following scenario:
Then nothing happens for about 10 seconds, and a "Simulator session timed out" alert dialog appears on my remote Mac (I have remote desktop open so I can see what happens). The user which Jenkins is running under has admin privileges, the access for assistive devices is enabled on the remote machine and I've run "DevToolsSecurity --enable" (all tips which are recommended in SO comments on similar issues). Still, no luck.
If I open a Terminal on the remote machine and start subliminal-test myself (logged in as Jenkins user), everything works just fine. So it's only when Jenkins executes this command the simulator times out.