summaryrefslogtreecommitdiff
path: root/tools/wrap-logcat.py
Commit message (Collapse)AuthorAgeFilesLines
* Make wrap-logcat a bit easier to call.Alex Light2018-03-131-1/+6
| | | | | | | | Allow the command to be sent in as a non-quoted string. Test: ./tools/wrap-logcat.py -o /tmp/abc.txt ./test/run-test 001-Main Change-Id: Ia35c2090c7f0ad8b12ff913a3e1d608e01a56845
* Write a wrapper to record logcat while another process is runningAlex Light2018-03-131-0/+59
It is often useful to have the device logcat from while our tests are running. Until now this had to be done manually. This adds a wrapper script that will run another script with logcat running in the background. The logcat is written to the '-o' or --output file. --logcat-invoke '<invoke>' lets one control how the logcat is collected. The output of the command is piped to the logcat file. The command is killed with SIGTERM when the testing ends. Users should be very careful that everything is properly quoted. Test: ./tools/wrap-logcat.py -o /tmp/test-logcat \ --logcat-invoke 'adb logcat -v threadtime' \ './test/run-test --dev 001-HelloWorld' Bug: 74429665 Change-Id: I70527b5b9e1547aa1f97a217ec56fd1ffc0c235c