DescriptionNew run shell implementation for DeviceUtils
The main differences are:
- it uses AdbWrapper.Shell to actually execute the command.
- when the cmd is supplied as a list of a command and its arguments,
the arguments are quoted to prevent them from being (mis)interpreted
by the shell.
- a new single_line option to check that the output produces contains a single line, and return the value of that line.
BUG=267773
Committed: https://crrev.com/ab18bcca0cc1475cf381211e595e75c1146c9115
Cr-Commit-Position: refs/heads/master@{#300237}
Patch Set 1 #
Total comments: 12
Patch Set 2 : Restored timeout/retry wrapper, better shell exception #Patch Set 3 : Rebase and fix conflicts #Patch Set 4 : single implementation of RunShellCommand, added assertShellCall #Patch Set 5 : fixed RunShellCommand call in instrumentation runner #
Total comments: 37
Patch Set 6 : some more fixes, replaced want_lines with want_value #Patch Set 7 : forgot to add pylib/cmd_helper_test.py #
Total comments: 9
Patch Set 8 : fixed nit, and TODO to make cmd_helper_test run on bots #Messages
Total messages: 14 (2 generated)
|