Closed
Bug 907979
Opened 12 years ago
Closed 11 years ago
remove code duplication from MochitestServer and WebsocketServer in runtests.py
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 907770
People
(Reporter: k0scist, Unassigned)
Details
Attachments
(1 file)
2.30 KB,
patch
|
Details | Diff | Splinter Review |
https://bugzilla.mozilla.org/show_bug.cgi?id=746243#c33
MochitestServer and WebsocketServer have start methods with duplicate code:
148 self._process = self._automation.Process(cmd)
149 pid = self._process.pid
150 if pid < 0:
151 log.error("Error starting websocket server.")
152 sys.exit(2)
153 log.info("runtests.py | Websocket server pid: %d", pid)
This code should be consolidated. This could be done through inheritence or other means
Comment 1•11 years ago
|
||
I have tested locally for some of the tests.
Please review
Attachment #8407135 -
Flags: review?(jmaher)
Updated•11 years ago
|
Attachment #8407135 -
Flags: review?(jmaher)
Comment 2•11 years ago
|
||
Jaspreet, thanks for filing this patch, in general this is a good patch and does what is asked here. For the last few weeks there has been work in bug 907770 which involves refactoring the code to start/stop/manage the servers. I am going to mark this as a duplicate of that bug since we are at r+.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•