diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-09-30 03:32:31 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-01 17:35:22 -0400 |
commit | e0b791c473dafcdc8329db49a4dbd3b7168dc20f (patch) | |
tree | 3a5ba277be9f63606d2bbba455a03155e6dd2e47 /test/librerelease-test.sh | |
parent | 80c4269e7318171a2f85d491b27af9d453cab78c (diff) |
test: Centalize setup in common_setup where it makes sense
Diffstat (limited to 'test/librerelease-test.sh')
-rw-r--r-- | test/librerelease-test.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/librerelease-test.sh b/test/librerelease-test.sh index 607df99..4a20636 100644 --- a/test/librerelease-test.sh +++ b/test/librerelease-test.sh @@ -6,16 +6,12 @@ describe librerelease before() { common_before - install -Dm644 /dev/stdin "$XDG_CONFIG_HOME/libretools/libretools.conf" <<-eot - WORKDIR=${tmpdir@Q}/workdir + cat >> "$XDG_CONFIG_HOME/libretools/libretools.conf" <<-eot REPODEST=ssh://repo@repo.parabola.nu:1863/~/staging/$LIBREUSER/staging/ eot - install -Dm644 /dev/stdin "$XDG_CONFIG_HOME/pacman/makepkg.conf" <<-eot + cat >> "$XDG_CONFIG_HOME/pacman/makepkg.conf" <<-eot PKGEXT=.pkg.tar.gz - PKGDEST=${tmpdir@Q}/workdir/pkgdest - GPGKEY=YOURKEY eot - mkdir -p "$tmpdir/workdir/pkgdest" } it_displays_usage_text() { @@ -50,7 +46,7 @@ it_lists_all_files() { } it_fails_if_gpgkey_not_set() { - echo 'unset GPGKEY' >> "$XDG_CONFIG_HOME"/pacman/makepkg.conf + unset GPGKEY WORKDIR="$tmpdir/workdir" mkdir -p "$WORKDIR/staging/repo1" "$WORKDIR/staging/repo2/sub" |