diff options
author | willemw12 | 2024-02-24 16:56:34 +0100 |
---|---|---|
committer | willemw12 | 2024-02-24 16:56:34 +0100 |
commit | 6bd57e2b1af94f1fdbcf05440909ae6b244cbcd1 (patch) | |
tree | b944b43e02a60b4f25b377124ff9be2f5df08911 | |
parent | d6138091f86e204d1837708fe56586fb5d98bebf (diff) | |
download | aur-backintime-git.tar.gz |
Fix "crontab file" test under yay/paru
Set XDG_CACHE_HOME path to be inside the isolated HOME path.
Make HOME path absolute.
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -27,8 +27,12 @@ build() { } check() { - # Set HOME to isolate some tests, which accesses files in ~/.ssh/, etc. - HOME=tmp make -C $_pkgname/common test + # Isolate some tests, accessing files in ~/.ssh/, etc. + HOME=$srcdir/tmp + export XDG_CACHE_HOME=$HOME/.cache + mkdir -p $XDG_CACHE_HOME + + make -C $_pkgname/common test rm -rf $_pkgname/common/tmp } |