The only approach I'm aware of is to just ignore such tests. Examples of this I've seen:
mdadm: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/linux.scm#n5943 borg: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/backup.scm#n739 rdiff-backup: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/backup.scm#n540 maradns: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/dns.scm#n1197 hostscope: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/monitoring.scm#n698 python-path: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-xyz.scm#n17458 python-executing: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-xyz.scm#n11112 I haven't been able to find a single instance of tests requiring root that we /don't/ skip. (But then, I don't really know how to look, either...) Surely there must be a way to do this?