mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
4
build.sh
4
build.sh
@@ -75,7 +75,7 @@ android_test() {
|
|||||||
AVDNAME=${AVD_PREFIX}${API}
|
AVDNAME=${AVD_PREFIX}${API}
|
||||||
|
|
||||||
(
|
(
|
||||||
flock 10
|
/usr/local/opt/util-linux/bin/flock 10
|
||||||
log_info "Stopping Android emulator..."
|
log_info "Stopping Android emulator..."
|
||||||
while [[ -n $(pgrep -f ${AVDNAME}) ]]; do
|
while [[ -n $(pgrep -f ${AVDNAME}) ]]; do
|
||||||
pkill -9 -f ${AVDNAME}
|
pkill -9 -f ${AVDNAME}
|
||||||
@@ -91,7 +91,7 @@ android_test() {
|
|||||||
--package "system-images;android-$API;default;x86_64" \
|
--package "system-images;android-$API;default;x86_64" \
|
||||||
--device "Nexus 4" || return 1
|
--device "Nexus 4" || return 1
|
||||||
|
|
||||||
flock -u 10
|
/usr/local/opt/util-linux/bin/flock -u 10
|
||||||
) 10>/tmp/uhabitsTest.lock
|
) 10>/tmp/uhabitsTest.lock
|
||||||
|
|
||||||
log_info "Launching emulator..."
|
log_info "Launching emulator..."
|
||||||
|
|||||||
Reference in New Issue
Block a user