gh-unit/Scripts/RunTests.sh results in error when running on jenkins: launch_msg(): Socket is not connected

399 views
Skip to first unread message

Joshua Moody

unread,
Jul 29, 2012, 3:47:07 AM7/29/12
to ghu...@googlegroups.com
macos 10.7.4
xcode 4.4
ghunit 0.5.4
jenkins < 1.475 (could not find the version but it is pre- 1.475)

yesterday i updated the gh-unit framework and replaced my old (by several months) RunTests.sh script for one of my iOS projects.

in the RunTests.sh i noticed that there was some new launchctl commands around securityd.  this new RunTests.sh script worked fine from the terminal and when i started the tests from Xcode.  it failed, however, when running on my jenkins server.  this is the message i see:

Test Suite 'Tests' finished.
Executed 730 of 730 tests, with 0 failures in 68.391 seconds (0 disabled).

Failed tests:

Writing JUnit XML to:/var/folders/v8/0r73g59n0js0tl4qn21t82wc00009c/T/test-results.
Wrote JUnit XML successfully.
launch_msg(): Socket is not connected
Showing first 200 notices only
Command /bin/sh failed with exit code 1


** BUILD FAILED **

i reverted back to my older RunTests.sh and resubmitted the job and everything worked as expected.  

has anyone else seen this problem?  if so, is there a fix?

i am also curious to know the reasons behind the new launchctl/securityd parts of the RunTests.sh script.

thanks!

jjm



Jon Nolen

unread,
Sep 14, 2012, 3:21:49 PM9/14/12
to ghu...@googlegroups.com
I am having the exact same problem with jenkins... anyone else?

Kenn Brodhagen

unread,
Oct 27, 2012, 7:38:23 PM10/27/12
to ghu...@googlegroups.com
I have the same issue as well.  Has anyone found a fix for it?  Which version of RunTests.sh works?


On Sunday, July 29, 2012 3:47:07 AM UTC-4, Joshua Moody wrote:

Joshua Moody

unread,
Oct 29, 2012, 6:51:16 AM10/29/12
to ghu...@googlegroups.com
this is what i am using.


RunTests.sh

Gabriel Handford

unread,
Oct 29, 2012, 2:19:35 PM10/29/12
to ghu...@googlegroups.com
That might be launchctl (securityd) failing. Try removing that section from the RunTests.sh?

On Mon, Oct 29, 2012 at 3:51 AM, Joshua Moody <joshua...@gmail.com> wrote:
this is what i am using.


--
You received this message because you are subscribed to the Google Groups "GHUnit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ghunit/-/aSsQ4oqabnUJ.

To post to this group, send email to ghu...@googlegroups.com.
To unsubscribe from this group, send email to ghunit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ghunit?hl=en.

Kenn Brodhagen

unread,
Nov 4, 2012, 2:48:56 PM11/4/12
to ghu...@googlegroups.com
Thanks!  I commented out the following portion and this resolved the issue:

# If trapping fails, make sure we kill any running securityd
#launchctl list | grep GHUNIT_RunIPhoneSecurityd && launchctl remove GHUNIT_RunIPhoneSecurityd
#SCRIPTS_PATH=`cd $(dirname $0); pwd`
#launchctl submit -l GHUNIT_RunIPhoneSecurityd -- "$SCRIPTS_PATH"/RunIPhoneSecurityd.sh $IPHONE_SIMULATOR_ROOT $CFFIXED_USER_HOME
#trap "launchctl remove GHUNIT_RunIPhoneSecurityd" EXIT TERM INT

Joshua Moody

unread,
Jan 30, 2013, 7:12:18 AM1/30/13
to ghu...@googlegroups.com
what is the purpose of that code block in the RunTests.sh script?  what problem is it trying to solve?

thanks.

Reply all
Reply to author
Forward
0 new messages