diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-21 00:48:34 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-21 00:52:22 -0400 |
commit | ad03b8ebad43ea80492c387f5694b886df2a8f4a (patch) | |
tree | 1eb221ae2e11642c1f0ce059be3e5d881098f582 | |
parent | 2c32b310a7cf5067061083dd8142317f3574a14f (diff) |
test: conf.sh: don't assume conf.sh works in sh; use bash
-rw-r--r-- | test/lib-conf-test.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib-conf-test.sh b/test/lib-conf-test.sh index e1a27e6..cf0b805 100644 --- a/test/lib-conf-test.sh +++ b/test/lib-conf-test.sh @@ -6,8 +6,7 @@ describe lib/conf.sh it_sets_makepkg_vars_in_custom_file() { unset PKGDEST touch "$tmpdir/makepkg.conf" - . $(librelib conf.sh) - MAKEPKG_CONF="$tmpdir/makepkg.conf" set_var makepkg PKGDEST /pkgdest + bash -c "$(printf '. $(librelib conf.sh); MAKEPKG_CONF=%q set_var makepkg PKGDEST /pkgdest' "$tmpdir/makepkg.conf")" . "$tmpdir/makepkg.conf" [[ $PKGDEST == /pkgdest ]] } |