summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zos/zosvars.exp2
-rw-r--r--tests/zos/zosvars.sh6
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/zos/zosvars.exp b/tests/zos/zosvars.exp
index ff7b847..8df54cf 100644
--- a/tests/zos/zosvars.exp
+++ b/tests/zos/zosvars.exp
@@ -4,5 +4,5 @@ jobname: 1 to 8 characters
release: two digits per field
asid: four hex digits
not exported
-inherited: CBT
+inherited: ignored
[status 0]
diff --git a/tests/zos/zosvars.sh b/tests/zos/zosvars.sh
index 4cf389c..6c07571 100644
--- a/tests/zos/zosvars.sh
+++ b/tests/zos/zosvars.sh
@@ -36,4 +36,8 @@ esac
# ZOS_SYSNAME handed in by a parent cannot outrank the one the shell
# computes for itself.
env | grep -q '^ZOS_' && echo "exported" || echo "not exported"
-echo "inherited: $(ZOS_SYSNAME=WRONG "$TSH" -c 'echo "$ZOS_SYSNAME"')"
+if [ "$(ZOS_SYSNAME=WRONG "$TSH" -c 'echo "$ZOS_SYSNAME"')" = "$ZOS_SYSNAME" ]; then
+ echo "inherited: ignored"
+else
+ echo "inherited: kept"
+fi