Add the server address command option
There was a bug about launching a server to probe a remote touch
device. This patch fixed the bug by adding the server address
command option to which the cherrypy server could listen.
To make the command options easier to understand, they are
modified a little bit as follows:
-d: specifies the dut ip address
-s: specifies the server ip address
-p: specifies the server port to which the webplot server listens
BUG=chromium:443539
TEST=Launch the webplot server from chroot.
(cr) $ sudo python webplot.py -d $DUT_IP -p $SERVER_PORT
e.g.,
$ sudo python webplot.py -d 11.22.33.44 -p 8989
On the chrome browser of the host, type
"localhost:8989"
Press 'q' on the browser to terminate.
Note that it is also possible to launch the webplot server on
a chromebook to probe the touch device of another chromebook.
Change-Id: I0379a20bd245389ab9377d1a299a40326f884cf8
Reviewed-on: https://chromium-review.googlesource.com/253390
Reviewed-by: Charlie Mooney <[email protected]>
Commit-Queue: Shyh-In Hwang <[email protected]>
Tested-by: Shyh-In Hwang <[email protected]>
1 file changed