Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: devil/devil/android/tools/adb_run_shell_cmd.py

Issue 2998833002: Revert of [devil] Extract logging common behavior to its own module. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | devil/devil/android/tools/cpufreq.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/tools/adb_run_shell_cmd.py
diff --git a/devil/devil/android/tools/adb_run_shell_cmd.py b/devil/devil/android/tools/adb_run_shell_cmd.py
index 6edd5606ce39d14cfed9bc83a9a7a9deb22779e0..5880c5e016eda1f5aa013ef694634dd17bae125c 100755
--- a/devil/devil/android/tools/adb_run_shell_cmd.py
+++ b/devil/devil/android/tools/adb_run_shell_cmd.py
@@ -15,22 +15,23 @@
from devil.android import device_utils
from devil.android.tools import script_common
-from devil.utils import logging_common
+from devil.utils import run_tests_helper
def main():
parser = argparse.ArgumentParser(
'Run an adb shell command on selected devices')
parser.add_argument('cmd', help='Adb shell command to run.', nargs="+")
- logging_common.AddLoggingArguments(parser)
script_common.AddDeviceArguments(parser)
script_common.AddEnvironmentArguments(parser)
parser.add_argument('--as-root', action='store_true', help='Run as root.')
parser.add_argument('--json-output',
help='File to dump json output to.')
+ parser.add_argument('-v', '--verbose', default=0, action='count',
+ help='Verbose level (multiple times for more)')
args = parser.parse_args()
- logging_common.InitializeLogging(args)
+ run_tests_helper.SetLogLevel(args.verbose)
script_common.InitializeEnvironment(args)
devices = script_common.GetDevices(args.devices, args.blacklist_file)
« no previous file with comments | « no previous file | devil/devil/android/tools/cpufreq.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698