mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 07:08:12 +00:00
e5137981ff
buildrpms.pl stages each build's sources under $HOME/rpmbuild/sources. mock now builds as the chrootuid of the target, uid 1000 for openEuler 24.03, and HOME of the Jenkins agents is /root, mode 0550. mock --sources then fails with "Permission denied" on the staging directory. The unit test asserts that the base directory is under the dist tree of the checkout and not under $HOME, and that the staging tree is readable by other users when the umask is 077. A native test, run as root in the Fedora container, reads the staged files as uid 1000. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>