mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907552 - Mochitests should use __file__ for determining location, r=gps
This commit is contained in:
parent
9d70573449
commit
665be4f33e
@ -4,7 +4,6 @@
|
||||
|
||||
import optparse
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
from automation import Automation
|
||||
@ -12,7 +11,7 @@ from automationutils import addCommonOptions, isURL
|
||||
from mozprofile import DEFAULT_PORTS
|
||||
import moznetwork
|
||||
|
||||
here = os.path.abspath(os.path.dirname(sys.argv[0]))
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
try:
|
||||
from mozbuild.base import MozbuildObject
|
||||
@ -652,7 +651,7 @@ class B2GOptions(MochitestOptions):
|
||||
def verifyOptions(self, options, mochitest):
|
||||
# since we are reusing verifyOptions, it will exit if App is not found
|
||||
temp = options.app
|
||||
options.app = sys.argv[0]
|
||||
options.app = __file__
|
||||
tempPort = options.httpPort
|
||||
tempSSL = options.sslPort
|
||||
tempIP = options.webServer
|
||||
|
@ -15,7 +15,7 @@ try:
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
here = os.path.abspath(os.path.dirname(sys.argv[0]))
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
sys.path.insert(0, here)
|
||||
|
||||
from b2gautomation import B2GDesktopAutomation
|
||||
|
@ -12,7 +12,7 @@ import shutil
|
||||
import math
|
||||
import base64
|
||||
|
||||
sys.path.insert(0, os.path.abspath(os.path.realpath(os.path.dirname(sys.argv[0]))))
|
||||
sys.path.insert(0, os.path.abspath(os.path.realpath(os.path.dirname(__file__))))
|
||||
|
||||
from automation import Automation
|
||||
from remoteautomation import RemoteAutomation, fennecLogcatFilters
|
||||
@ -209,7 +209,7 @@ class RemoteOptions(MochitestOptions):
|
||||
def verifyOptions(self, options, mochitest):
|
||||
# since we are reusing verifyOptions, it will exit if App is not found
|
||||
temp = options.app
|
||||
options.app = sys.argv[0]
|
||||
options.app = __file__
|
||||
tempPort = options.httpPort
|
||||
tempSSL = options.sslPort
|
||||
tempIP = options.webServer
|
||||
|
Loading…
Reference in New Issue
Block a user