Skip to content

Commit a74293b

Browse files
committed
Improve test.sh
1 parent 59e4b24 commit a74293b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
if ! type cfx > /dev/null; then
4040
echo "Please activate the Firefox Addon SDK before running this script."
4141
echo "https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-1.16.tar.gz"
42-
echo "Unpack and run 'source addon-adk-1.16/bin/activate'"
42+
echo "Unpack and run 'cd addon-adk-1.16; source bin/activate'"
4343
exit 1
4444
fi
4545

@@ -49,5 +49,11 @@ if ! cfx --version | grep -q "$LATEST_SDK_VERSION"; then
4949
fi
5050

5151
cd $TEST_ADDON_PATH
52-
echo "running tests"
53-
cfx test --profiledir="$PROFILE_DIRECTORY" --verbose
52+
# If you just want to run Firefox with the latest code:
53+
if [ "$1" == "--justrun" ]; then
54+
echo "running firefox"
55+
firefox -profile "$PROFILE_DIRECTORY"
56+
else
57+
echo "running tests"
58+
cfx test --profiledir="$PROFILE_DIRECTORY" --verbose
59+
fi

0 commit comments

Comments
 (0)