diff options
author | Nicolas Iooss | 2017-02-06 21:07:38 +0100 |
---|---|---|
committer | Nicolas Iooss | 2017-02-06 21:07:38 +0100 |
commit | b32c15e7a25f46475b040e8862627ac53ec6062c (patch) | |
tree | 2a66688e2905619687a24b002548532ac6ffa83e | |
parent | 7e5c239cf77598a6df1c7312533bc63d4931414d (diff) | |
download | aur-b32c15e7a25f46475b040e8862627ac53ec6062c.tar.gz |
openssh-selinux: make tests' graceful dropout work
Fix last commit, with
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/openssh&id=9f0f14b2799ed54745f83dd797bb41c229e6592c
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -64,14 +64,13 @@ build() { check() { cd "${srcdir}/${pkgname/-selinux}-${pkgver}" - [[ -e /.arch-chroot ]] && return - # Connectivity tests will fail under makechrootpkg since - # it runs as nobody which has /bin/false as login shell. + # Tests require openssh to be already installed system-wide, + # also connectivity tests will fail under makechrootpkg since + # it runs as nobody which has /bin/false as login shell. - [[ -e /usr/bin/scp ]] || return - # Tests require openssh to be already installed system-wide. - - make tests + if [[ -e /usr/bin/scp && ! -e /.arch-chroot ]]; then + make tests + fi } package() { |