diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-10 22:31:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-11 13:02:28 -0400 |
commit | 9d90d48c9d01fa45d1a363fc01d0a1c2ffc9e790 (patch) | |
tree | 05bb9b11c18c21ce8182e8ff0936bda8a0714acd /test/librechroot-test.sh | |
parent | 2a10922b475d5a78e9bdaf8a52768c767404bea0 (diff) |
test/: Tidy before()/after() definitions.
Diffstat (limited to 'test/librechroot-test.sh')
-rw-r--r-- | test/librechroot-test.sh | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/test/librechroot-test.sh b/test/librechroot-test.sh index 51a43bd..fc07983 100644 --- a/test/librechroot-test.sh +++ b/test/librechroot-test.sh @@ -1,24 +1,9 @@ #!/usr/bin/env roundup describe librechroot - . ./test-common.sh -_setup_chrootdir - -before() { - _before librechroot - - mkdir -p "$XDG_CONFIG_HOME"/libretools - - echo "CHROOTDIR='${chrootdir}'" > "$XDG_CONFIG_HOME"/libretools/chroot.conf - echo "CHROOT='default'" >> "$XDG_CONFIG_HOME"/libretools/chroot.conf - echo "CHROOTEXTRAPKG=()" >> "$XDG_CONFIG_HOME"/libretools/chroot.conf -} - -after() ( - _after_sudo -) +setup_chrootdir it_creates_repo_for_new_chroots() { require network sudo || return 0 |