summaryrefslogtreecommitdiff
path: root/tests/toolbox.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/toolbox.inc.sh')
-rw-r--r--tests/toolbox.inc.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh
index 4af465f..c3c9f88 100644
--- a/tests/toolbox.inc.sh
+++ b/tests/toolbox.inc.sh
@@ -1422,8 +1422,14 @@ function grant_key_permit ()
echo keyctl grant "$@" >>$OUTPUTFILE
keyctl grant "$@" >>$OUTPUTFILE 2>&1
- if [ $? != $my_exitval ]
+ e=$?
+ if [ $e = $my_exitval ]
then
+ if [ $e = 0 ]
+ then
+ check_notify setattr $1
+ fi
+ else
failed
fi
}