-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AGDIGGER-21 - android slave docker image
- Loading branch information
Showing
4 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/expect -f | ||
|
||
set timeout 1800 | ||
set cmd [lindex $argv 0] | ||
set licenses [lindex $argv 1] | ||
|
||
spawn {*}$cmd | ||
expect { | ||
"Do you accept the license '*'*" { | ||
exp_send "y\r" | ||
exp_continue | ||
} | ||
eof | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain | ||
|
||
set +e | ||
|
||
bootanim="" | ||
failcounter=0 | ||
until [[ "$bootanim" =~ "stopped" ]]; do | ||
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1` | ||
echo "$bootanim" | ||
if [[ "$bootanim" =~ "not found" ]]; then | ||
let "failcounter += 1" | ||
if [[ $failcounter -gt 15 ]]; then | ||
echo "Failed to start emulator" | ||
exit 1 | ||
fi | ||
fi | ||
sleep 1 | ||
done | ||
echo "Done" |