Now all tests except for 28 succeed in root mode
This commit is contained in:
parent
9dda815067
commit
141e5531ad
8
test/run
8
test/run
@ -20,13 +20,13 @@ for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
|
|||||||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
|
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
|
||||||
41 sh1.sh sh2.sh
|
41 sh1.sh sh2.sh
|
||||||
do total=`expr $total + 1`
|
do total=`expr $total + 1`
|
||||||
CMD=./test$i
|
FAIL=0
|
||||||
if [ $USER = root -a \( $i = 11 -o $i = 33 \) ]
|
if [ $USER = root -a \( $i = 11 -o $i = 33 \) ]
|
||||||
then
|
then su - ast -c "cd `pwd`; ./test$i" || FAIL=1
|
||||||
CMD=su\ -\ ast\ -c\ `pwd`/$CMD
|
else ./test$i || FAIL=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $CMD
|
if [ $FAIL -eq 0 ]
|
||||||
then passed=`expr $passed + 1`
|
then passed=`expr $passed + 1`
|
||||||
else failed=`expr $failed + 1`
|
else failed=`expr $failed + 1`
|
||||||
badones=`echo $badones " " $i`
|
badones=`echo $badones " " $i`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user