Closed Bug 595269 Opened 14 years ago Closed 14 years ago

remotereftest.py assumes ./server.js instead of reftest/server.js

Categories

(Testing :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: jmaher)

References

Details

Attachments

(1 file)

in starting the webserver for remote reftests, we set the arguments to xpcshell assuming we are running from the script directory.

Instead, we need to use the SCRIPT_DIRECTORY variable and point to the appropriate paths.

here is the source:
http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/remotereftest.py#185

and instead of:
"-f", "./" + "reftest/components/httpd.js",
"-f", "./" + "server.js"]

we should have something similar to this:
"-f", os.path.join(SCRIPT_DIRECTORY, "reftest/components/httpd.js"),
"-f", os.path.join(SCRIPT_DIRECTORY, "server.js")]


of course there might be some corner cases to take care of, but we should assume we can run tests similar to this cli:
python reftest/remotereftest.py --deviceIP=...
Blocks: 579566
patch which does what the bug proposes.  Tested in a few scenarios and this seems to do the trick.
Assignee: nobody → jmaher
Attachment #475101 - Flags: review?(ctalbert)
Attachment #475101 - Flags: review?(ctalbert) → review+
http://hg.mozilla.org/mozilla-central/rev/92d0663ca54c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: New Frameworks → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: