Skip to content

Commit

Permalink
Added shebang statements, some docs to config. Fixed path to runemu.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsofapollo committed May 16, 2012
1 parent 5faad20 commit 2d925dc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tools/ci/unit/config.sh
@@ -1,15 +1,21 @@
#!/bin/bash

# Location of the B2G REPO
if [ -z "$B2G_HOME" ];
then
echo "B2G_HOME must be set";
exit 1;
fi

# Websocket server location:
# example: ws://localhost:8789
if [ -z "$TEST_AGENT_SERVER" ];
then
echo "TEST_AGENT_SERVER must be set";
exit 1;
fi

# File to use for test output
if [ -z "$TEST_OUTPUT"];
then
TEST_OUTPUT=$B2G_HOME/test-output.xml;
Expand Down
4 changes: 3 additions & 1 deletion tools/ci/unit/emulator.sh
@@ -1,3 +1,5 @@
#!/bin/bash

CI_TOOLS=$PWD;

source $PWD/config.sh
Expand All @@ -13,7 +15,7 @@ rm -f gaia/profile.tar.gz
DOMAIN=http://test-agent.trunk.gaiamobile.org/index.html#?websocketUrl=$TEST_AGENT_SERVER

echo "Starting Emulator";
./gecko/testing/marionette/client/marionette/runemu.sh \
./gecko/testing/marionette/client/marionette/scripts/runemu.sh \
python --repo $B2G_HOME \
--pidfile $B2G_HOME/emulator.pid \
--url $DOMAIN;
Expand Down
2 changes: 2 additions & 0 deletions tools/ci/unit/test.sh
@@ -1,3 +1,5 @@
#!/bin/bash

cd $B2G_HOME/gaia

# start test agent server put it in the background
Expand Down

0 comments on commit 2d925dc

Please sign in to comment.