summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorShiz <hi@shiz.me>2017-05-20 18:32:45 +0200
committerWilliam Pitcock <nenolod@dereferenced.org>2017-06-21 18:14:32 +0000
commit79525de509ccb107e388c5f4d5bb700b2d1e8831 (patch)
tree96b51bfb417e422657a5dddf439115020ba694d3 /abuild.in
parentf9132fad7605400e38996e8f0145018cc7945940 (diff)
downloadabuild-79525de509ccb107e388c5f4d5bb700b2d1e8831.tar.gz
abuild-79525de509ccb107e388c5f4d5bb700b2d1e8831.tar.bz2
abuild-79525de509ccb107e388c5f4d5bb700b2d1e8831.tar.xz
abuild-79525de509ccb107e388c5f4d5bb700b2d1e8831.zip
abuild: add !checkroot option to run tests without fakeroot
Due to fakeroot being very permissive with regards to file permissions, some package testsuites that explicitly check for failing permission checks will fail. For those testsuites, give the APKBUILD the option to run the tests outside of a fakeroot environment.
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index c003282..0f54c87 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1401,6 +1401,9 @@ build_abuildrepo() {
# if package() is missing then build is called from rootpkg
_build=true
fi
+ if options_has "!checkroot"; then
+ _check=check
+ fi
if ! want_check; then
_check=true
fi