This tool will run tests on devices to reproduce errors or issues.
Ideally to run any client server tests in chromeos, either we have to install paramiko/fabric like libraries or rely on autotest which needs cros_sdk environment.
The idea of this tools project is to come up with easy to use tools with very little to none dependencies so that can be used by all in any environment.
e.g.: The first tool named chromeDebugging.py has only 1 dependency named sshpass. and this can be installed as a part of debian package without depending on pip version or any specific python library with different version dependency and hence avoid virtualenv type of implementation to help anybody and everybody use this tool to reproduce issues and test patches.
You will need to install sshpass to run this script.
$ sudo apt-get install sshpass
You could also do this in the google chroot environment.
$ sudo emerge sshpass
$ python chromeDebugging.py
Here is an example of how to execute the tool using the arguments.
$ python chromeDebugging.py --test reboot --ip 190.128.1.120 --command "dmesg" --search_for "HC died"
usage: chromeDebugging.py
[-h] [--testcase TESTCASE_TO_RUN]
[--test TEST_TO_RUN] [--ip IP_ADDRESS]
[--after_test_delay WAIT_DEVICE_INITIALIZATION]
[--count ITERATION_COUNT] [--command CMD_TO_RUN]
[--search_for SEARCH_PATTERNS [SEARCH_PATTERNS ...]]
optional arguments:
-h, --help
Show this help message and exit
--testcase TESTCASE_TO_RUN
Specify which testcase to run on system.
testcase_to_run is before reboot or suspend the test.
--test TEST_TO_RUN
Choose from the following options for test_to_run is either "reboot"
or "suspend" or "rtc_coldboot" or "ec_coldboot" or "servo_coldboot"
--ip IP_ADDRESS
Provide IP of remote system
--after_test_delay WAIT_DEVICE_INITIALIZATION
Provide Device initialization delay in seconds after test!
--count ITERATION_COUNT
Provide iteration count!
--command CMD_TO_RUN
Please mention the command to check in double quotes!
--search_for SEARCH_PATTERNS [SEARCH_PATTERNS ...]
Provide one or many search strings with space.
If found, test will either return FAIL/STOP.