common.sh (437B)
1 #!/bin/bash 2 # This Source Code Form is subject to the terms of the Mozilla Public 3 # License, v. 2.0. If a copy of the MPL was not distributed with this 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 6 print_info() { 7 # Periodically output some text to prevent output timeouts 8 while true; do 9 echo "Collecting test resource usage..." 10 sleep 5 11 done 12 } 13 14 get_process_ids(){ 15 (adb shell pgrep -f "$1") 16 }