diff --git a/mozilla/testing/mochitest/runtests.pl.in b/mozilla/testing/mochitest/runtests.pl.in index 57c1e86222e..92dd3fb1e42 100644 --- a/mozilla/testing/mochitest/runtests.pl.in +++ b/mozilla/testing/mochitest/runtests.pl.in @@ -625,7 +625,9 @@ sub executeMac { die "cannot fork: $!"; } elsif ($pid == 0) { # run only the executable so we get a pid we can focus - $app .= "-bin"; + if ($app !~ /-bin$/) { + $app .= "-bin"; + } my @runargs = ($app, '-foreground', '-no-remote', '-profile', $profile_arg); push(@runargs, $test_url);