summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-18 08:08:24 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-18 08:08:24 -0600
commit93d07e53ef8da50ad581eb73fd2992ce57ae78e3 (patch)
tree13a98c05a310c865f72da335a26c1bf8cce10b66
parent0be301b26cd8fdfe7013c78b49ca54477530e917 (diff)
downloadzash-93d07e53ef8da50ad581eb73fd2992ce57ae78e3.tar.gz
tests/run.sh: start the z/OS tests without the profile's _BPX_ settings
/etc/profile exports _BPX_SHAREAS=YES and _BPX_SPAWN_SCRIPT=YES for every login, so tests that check what 'set -o shareas' and 'set -o jobnames' add to the environment saw variables the shell had not put there.
-rwxr-xr-xtests/run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 07fe2c8..a920af2 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -60,6 +60,9 @@ esac
# links, not shell scripts: a script found on PATH loses its stdin pipe
# inside a z/OS spawn-script.
if [ "$platform" = zos ]; then
+ # /etc/profile exports these for every login; the tests start from the
+ # state the manual describes, where only `set -o` puts them there.
+ unset _BPX_SHAREAS _BPX_SPAWN_SCRIPT
mkdir -p "$work/gnu"
for t in sleep wc sort tr od; do
g=$(command -v "g$t") && ln -s "$g" "$work/gnu/$t"