1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

CI/android: add 60 min timeout for cargo test to see where it's stuck

This commit is contained in:
Niyaz Nigmatullin 2022-08-18 14:28:34 +03:00
parent 5a726e1ab3
commit 84abf9c920

View file

@ -120,7 +120,7 @@ build () {
tests () { tests () {
probe='/sdcard/tests.probe' probe='/sdcard/tests.probe'
command="'cd ~/coreutils && cargo test --features feat_os_unix_android --no-fail-fast >/sdcard/tests.log 2>&1; echo \$? >$probe'" command="'cd ~/coreutils && timeout --preserve-status --verbose -k 1m 60m cargo test --features feat_os_unix_android --no-fail-fast >/sdcard/tests.log 2>&1; echo \$? >$probe'"
run_termux_command "$command" "$probe" run_termux_command "$command" "$probe"
return_code=$? return_code=$?
adb pull /sdcard/tests.log . adb pull /sdcard/tests.log .