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.
This commit is contained in:
Shiz 2017-05-20 18:32:45 +02:00 committed by William Pitcock
parent f9132fad76
commit 79525de509
1 changed files with 3 additions and 0 deletions

View File

@ -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