0d75056f7bfb1c2b42d8a2c7ebbd34f69bc95db6 |
|
28-Jan-2014 |
Prathmesh Prabhu <pprabhu@chromium.org> |
pseudomodem: Run pseudomodem in a separate subprocess. This CL cleans up the way pseudomodem is launched. The main changes are: - |pseudomodem.py| no longer tries to fork pseudomodem in a background process. It is now a top level package that runs pseudomodem in the current process. This should no longer be used directly. - |pseudomodem_context.py| should be used by tests. The companion module |run_pseudomodem.py| should be used to run pseudomodem from the command line. This cleanly launches pseudomodem in a separate process. It also provides ways to customize the pseudomodem with the same flexibility as before this CL. - Logs from pseudomodem are now directed to syslog, and are handled in the same way as ModemManager logs. Additionally, logs can be directed to stdout. - pseudomodem now runs as the 'modem' user -- this is the user that modemmanager runs as. BUG=chromium:328257 TEST=(1) Run /usr/local/autotest/cros/cellular/pseudomodem/pseudomodem_context.py with and without the '--cli' option and ensure pseudomodem works as expected in standalone mode. (2) After fixing tests (see companion CL:184088), run network3g_pseudomodem and network_ui test suites. CQ-DEPEND=CL:184088 Change-Id: I0c1f275150c52a6ae882b1fc260bcbd6401754b9 Reviewed-on: https://chromium-review.googlesource.com/184059 Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/client/cros/cellular/pseudomodem/pm_constants.py
|