Fix CI UI test log handling
This commit is contained in:
parent
e1cf5cd33d
commit
f070a72260
1 changed files with 3 additions and 2 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -53,7 +53,7 @@ jobs:
|
|||
- name: Run UI tests
|
||||
run: |
|
||||
set -euo pipefail
|
||||
log_file="$(mktemp /tmp/cmux-ui-tests.XXXXXX.log)"
|
||||
log_file="$(mktemp /tmp/cmux-ui-tests.XXXXXX)"
|
||||
console_user="$(stat -f%Su /dev/console)"
|
||||
console_uid=""
|
||||
if [ "$console_user" != "root" ]; then
|
||||
|
|
@ -105,9 +105,10 @@ jobs:
|
|||
status=${PIPESTATUS[0]}
|
||||
fi
|
||||
|
||||
rm -f "$log_file"
|
||||
if [ "$status" -ne 0 ] && grep -q "Timed out while enabling automation mode" "$log_file"; then
|
||||
echo "UI automation mode is unavailable on this runner. Skipping UI tests."
|
||||
rm -f "$log_file"
|
||||
exit 0
|
||||
fi
|
||||
rm -f "$log_file"
|
||||
exit "$status"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue