summaryrefslogtreecommitdiff
path: root/test/librestage-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-09-29 20:43:59 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-01 17:35:22 -0400
commitd60ba20ed130c5f4c4d7f22c78fb376bbda3873a (patch)
tree53a76235db404e85c8c214d7b996dca966cb9bcb /test/librestage-test.sh
parent9520cb3a3da4b67db36242b5efe21ab5f0363ed8 (diff)
test: test-common.bash: Remove hooks from before()
Instead, make the default before() an alias for common_before(), which test files can call if they override before().
Diffstat (limited to 'test/librestage-test.sh')
-rw-r--r--test/librestage-test.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/librestage-test.sh b/test/librestage-test.sh
index 97e7df5..7e29a3a 100644
--- a/test/librestage-test.sh
+++ b/test/librestage-test.sh
@@ -5,7 +5,10 @@ describe librestage
setup_chrootdir
-common_before() {
+before() {
+ common_before
+ chroot_before
+
mkdir -p $XDG_CONFIG_HOME/libretools
echo "WORKDIR='$tmpdir/workdir'" > $XDG_CONFIG_HOME/libretools/libretools.conf