Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created October 29, 2010 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burtlo/654081 to your computer and use it in GitHub Desktop.
Save burtlo/654081 to your computer and use it in GitHub Desktop.
Hudson Bash Shell Command: Execute a test on a remote system, save the results, return the results file, return the results
#!/bin/bash -x
rm -f spec_results.html
ssh $TEST_SYSTEM "bash --login -c \"cd ~/testsuite/ && rm -f test_results.html && svn up --accept theirs-full && rake spec env=${TEST_SYSTEM} \""
declare test_results=$?
scp $TEST_SYSTEM:/home/automateduser/testsuite/test_results.html $WORKSPACE
exit $test_results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment