History log of /external/autotest/client/cros/cellular/pseudomodem/pm_constants.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
c569e99b922542e7ddbbc4cd465fc8328ec16214 22-Jan-2014 Thieu Le <thieule@chromium.org> cellular: Refactor pseudomodem mm1.py into constants and errors.

cros/cellular/mm1_constants.py: This module contains ModemManager
specific constants which are used by the pseudomodem and a future
ModemManager proxy.

cros/cellular/pseudomodem/pm_constants.py: Pseudomodem specific
constants (eg. testing interface, state machine names)

cros/cellular/pseudomodem/pm_errors.py: Pseudomodem specific exception
classes.

BUG=chromium:219144
TEST=network_3GDisconnectFailure/control
network_3GDisableWhileConnecting/control.pseudomodem
network_3GFailedConnect/control.pseudomodem
network_3GIdentifiers/control.pseudomodem
network_3GModemControl/control.pseudomodem
network_3GModemPresent/control.pseudomodem
network_3GSafetyDance/control.pseudomodem
network_3GScanningProperty/control
network_3GSmokeTest/control.pseudomodem
network_3GStressEnable/control.pseudomodem
network_CDMAActivate/control
network_ChromeCellularNetworkPresent/control
network_ChromeCellularNetworkProperties/control
network_ChromeCellularSmokeTest/control
network_LTEActivate/control
network_SIMLocking/control

Change-Id: I7b02cf0ee6b1b73fb1eb7fcf0f10068e7515e465
Reviewed-on: https://chromium-review.googlesource.com/183526
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Thieu Le <thieule@chromium.org>
Commit-Queue: Thieu Le <thieule@chromium.org>
/external/autotest/client/cros/cellular/pseudomodem/pm_constants.py