summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-01 16:03:05 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-01 16:31:53 -0500
commitf8b22f20147d872aef9fa1037139c39e4dd0e687 (patch)
treecd8bc5f5c25ff58cd36d4e68bf67679b1c7d6b09 /.github/workflows
parent31bede02d5dbbc8e9e60d3af9fc4a749ad89fa11 (diff)
downloadbfs-f8b22f20147d872aef9fa1037139c39e4dd0e687.tar.xz
tests: Use variable redirections to dup std{out,err}
Previously, we hardcoded file descriptors 3 and 4 for duplicating stdandard output/error respectively. In preparation for keeping inherited FDs open, switch to using bash's variable redirection feature to dynamically assign FDs. This feature is only available from bash 4.1 onwards, so this marks the end of our support for bash 3. macOS users will need to install a modern bash version to run our tests.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 72037e3..ff0ff6f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -52,7 +52,9 @@ jobs:
- name: Install dependencies
run: |
- brew install expect
+ brew install \
+ bash \
+ expect
- name: Run tests
run: |