Make test_unit_configure_paths work with bash 3
Bash 3 doesn't understand declare -p so use regular parameter expansion instead to print all variables that begin with YADM_ or GIT_.
This commit is contained in:
parent
8c2f833b43
commit
c232894792
1 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,9 @@ def run_test(runner, paths, args, expected_matches, cwd=None):
|
|||
XDG_DATA_HOME=
|
||||
HOME="{HOME}" set_yadm_dirs
|
||||
configure_paths
|
||||
declare -p | grep -E '(YADM|GIT)_'
|
||||
for var in "${{!YADM_@}}" "${{!GIT_@}}"; do
|
||||
echo "$var=\\"${{!var}}\\""
|
||||
done
|
||||
"""
|
||||
run = runner(command=["bash"], inp=script, cwd=cwd)
|
||||
assert run.success
|
||||
|
|
Loading…
Reference in a new issue