Skip to content

Commit 2dd6cae

Browse files
committed
Make ./test.sh --justrun work on OS X
1 parent 79d6ffd commit 2dd6cae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/firefox.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ pushd $TEST_ADDON_PATH
6161
if [ "$1" == "--justrun" ]; then
6262
echo "running firefox"
6363
shift
64-
firefox -no-remote -profile "$PROFILE_DIRECTORY" "$@"
64+
if [ $(uname) == Darwin ]; then
65+
open /Applications/Firefox.app --wait-apps --new --args -no-remote -profile "$PROFILE_DIRECTORY" "$@"
66+
else
67+
firefox -no-remote -profile "$PROFILE_DIRECTORY" "$@"
68+
fi
6569
else
6670
echo "running tests"
6771
cfx test --profiledir="$PROFILE_DIRECTORY" --verbose

0 commit comments

Comments
 (0)