Skip to content

Commit 154312b

Browse files
committed
ci: sanitizers - shell:bash for steps that use 'source'
The test-deps container's default shell is dash (Debian's /bin/sh), not bash. 'source' is a bash builtin - dash has no such command, so the sanitizers step exits 127 with 'source: not found' before the actual test runs (job 78146645114). Add 'shell: bash' to the three steps in sanitizers.yml that source scripts/env-setup (ASan job test + cmd-tests, TSan job test). Other PR-time workflows that use 'source scripts/env-setup' (cmdline, fips-ready) run on the host ubuntu-22.04 runner where bash is the default, so they don't need this fix.
1 parent f0cd51d commit 154312b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/sanitizers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,15 @@ jobs:
9090
./scripts/build-wolfprovider.sh
9191
9292
- name: Run wolfprov unit tests (make test) under sanitizers
93+
# bash needed for `source` - container default shell is dash.
94+
shell: bash
9395
run: |
9496
export LD_PRELOAD="$(gcc -print-file-name=libasan.so)"
9597
source scripts/env-setup
9698
make test
9799
98100
- name: Run cmd-tests under sanitizers
101+
shell: bash
99102
run: |
100103
export LD_PRELOAD="$(gcc -print-file-name=libasan.so)"
101104
source scripts/env-setup
@@ -170,6 +173,7 @@ jobs:
170173
./scripts/build-wolfprovider.sh
171174
172175
- name: Run wolfprov unit tests (make test) under TSan
176+
shell: bash
173177
run: |
174178
# `|| true`: env-setup's provider check fails under TSan
175179
# (stock openssl can't dlopen a TSan-instrumented provider).

0 commit comments

Comments
 (0)