From 2dd6cae9d9253d0bc3816ee70cb3199a376226bc Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Mon, 14 Sep 2015 02:14:34 -0700 Subject: [PATCH] Make ./test.sh --justrun work on OS X --- test/firefox.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/firefox.sh b/test/firefox.sh index 6cc7219d4bc9..674981c02d80 100755 --- a/test/firefox.sh +++ b/test/firefox.sh @@ -61,7 +61,11 @@ pushd $TEST_ADDON_PATH if [ "$1" == "--justrun" ]; then echo "running firefox" shift - firefox -no-remote -profile "$PROFILE_DIRECTORY" "$@" + if [ $(uname) == Darwin ]; then + open /Applications/Firefox.app --wait-apps --new --args -no-remote -profile "$PROFILE_DIRECTORY" "$@" + else + firefox -no-remote -profile "$PROFILE_DIRECTORY" "$@" + fi else echo "running tests" cfx test --profiledir="$PROFILE_DIRECTORY" --verbose