tests: skip test-commit-sign.sh when not root
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
1 parent
d0278b6407
commit
d3545b0661
1 file changed
+6
@@ -23,6 +23,12 @@ if ! ${CMD_PREFIX} ostree --version | grep -q -e '\+gpgme'; then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
# Skip the test when non-root as gpgme would not read files owned by
|
||||
# another user.
|
||||
if test "$(id -i)" != "0"; then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
. $(dirname $0)/libtest.sh
|
||||
|
||||
keyid="472CDAFA"
|
||||
|
||||
Reference in new issue
Block a user