From 14632361423993069a34421946a993c95f6f6d60 Mon Sep 17 00:00:00 2001 From: Anuradha Weeraman Date: Tue, 23 Jun 2020 03:22:14 -0400 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad58f200e..f7ef253fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"