Created
September 14, 2016 16:00
-
-
Save kolyuchiy/f914948a23ec4d278db4a80ee541a08a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(seq 1 $NUMBER_OF_RUNS) | |
do | |
$IDEVICEDEBUG --udid "$DEVICE_ID" run "$BUNDLE_ID" >/dev/null 2>/dev/null & | |
COMPLETION_PATH="$MOUNTPOINT_PATH/$COMPLETION_INDICATOR" | |
LOG_PATH="$MOUNTPOINT_PATH/$LOG_NAME" | |
for j in $(seq 1 5) | |
do | |
sleep $MOUNT_SECONDS_PEDIOD | |
$UMOUNT "$MOUNTPOINT_PATH" 2>/dev/null || true | |
$MKDIR "$MOUNTPOINT_PATH" | |
$IFUSE --documents "$BUNDLE_ID" --udid "$DEVICE_ID" "$MOUNTPOINT_PATH" | |
sleep $AFTER_MOUNT_SECONDS_PEDIOD | |
if [ -f "$COMPLETION_PATH" ] && [ -f "$LOG_PATH" ]; then | |
break | |
fi | |
done | |
RESULT_PATH="$LOGS_FOLDER_PATH/$(date +"%d-%m-%Y-%H-%M-%S").csv" | |
(set -x; cp "$LOG_PATH" "$RESULT_PATH") | |
$UMOUNT "$MOUNTPOINT_PATH" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment