Skip to content
Browse files

Test: BasicSanity: cli tests need to be run as root for acl testing

  • Loading branch information...
1 parent 07609cf commit f3ee4e79b575b8ab4a20fc92c042e1981d03c7ef @beekhof committed
Showing with 11 additions and 2 deletions.
  1. +11 −2 BasicSanity.sh
View
13 BasicSanity.sh
@@ -65,12 +65,21 @@ for t in $tests; do
elif [ -e $test_home/$t ]; then
# pengine, cli
- $test_home/$t/regression.sh $verbose $valgrind
+ if [ x$TRAVIS = x ]; then
+ su root -c $test_home/$t/regression.sh $verbose $valgrind
+ else
+ sudo -- $test_home/$t/regression.sh $verbose $valgrind
+ fi
rc=$?
elif [ $t = cli -a -e $test_home/tools ]; then
# Running cli tests from the source tree
- $test_home/tools/regression.sh $verbose $valgrind
+ t=tools
+ if [ x$TRAVIS = x ]; then
+ su root -c $test_home/$t/regression.sh $verbose $valgrind
+ else
+ sudo -- $test_home/$t/regression.sh $verbose $valgrind
+ fi
rc=$?
else

0 comments on commit f3ee4e7

Please sign in to comment.
Something went wrong with that request. Please try again.