mirror of
https://github.com/TheLocehiliosan/yadm
synced 2025-06-04 08:33:57 +00:00
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
@ -89,7 +89,9 @@ def run_test(runner, paths, args, expected_matches, cwd=None):
|
|||||||
XDG_DATA_HOME=
|
XDG_DATA_HOME=
|
||||||
HOME="{HOME}" set_yadm_dirs
|
HOME="{HOME}" set_yadm_dirs
|
||||||
configure_paths
|
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)
|
run = runner(command=["bash"], inp=script, cwd=cwd)
|
||||||
assert run.success
|
assert run.success
|
||||||
|
Loading…
Reference in New Issue
Block a user