1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fix test failures in CI build, disable Mac build (#39)

.github/workflows/ci.yml:
- Disable Mac build as the GitHub runners appear to be broken
  (e.g. SIGCHLD fails, unlike on real Macs) and tend to hang.
- For the Linux build:
  - Set GMT timezone for 'printf %T' tests in builtins.sh.
  - Set the ulimit for open files to 1024 as the subshell.sh tests
    need a lot of open files.
  - As the runners lack the POSIX standard /dev/tty device, use the
    script command to provide a fake /dev/tty for the bracket.sh
    tests that use 'test -t $fd'.
    Ref.: https://github.com/actions/runner/issues/241
This commit is contained in:
Anuradha Weeraman 2020-06-23 03:22:14 -04:00 committed by GitHub
parent c1994b87f1
commit 1463236142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,15 +13,7 @@ jobs:
- name: Build
run: bin/package make
- name: Regression tests
run: bin/shtests
MacOS:
name: MacOS
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Build
run: bin/package make
- name: Regression tests
run: bin/shtests
run: |
export TZ=GMT
ulimit -n 1024
script -q -e -c "bin/shtests"