mirror of
https://github.com/tests-always-included/mo.git
synced 2025-04-09 18:21:15 +00:00
Add test that functions run in child if exported by parent
This commit is contained in:
parent
9ad445e280
commit
cec3502e22
@ -2,3 +2,4 @@ base
|
||||
subshell-simple
|
||||
subshell-undeclared
|
||||
subshell-source
|
||||
subshell-export
|
||||
|
11
meta-tests/subshell-export.sh
Executable file
11
meta-tests/subshell-export.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ./mo
|
||||
moExport
|
||||
bash << "EOF"
|
||||
source ./run-basic-tests
|
||||
if (( FAIL )); then
|
||||
exit 1
|
||||
fi
|
||||
EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user