Now all tests except for 28 succeed in root mode
This commit is contained in:
parent
9dda815067
commit
141e5531ad
1 changed files with 4 additions and 4 deletions
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 \
|
||||
41 sh1.sh sh2.sh
|
||||
do total=`expr $total + 1`
|
||||
CMD=./test$i
|
||||
FAIL=0
|
||||
if [ $USER = root -a \( $i = 11 -o $i = 33 \) ]
|
||||
then
|
||||
CMD=su\ -\ ast\ -c\ `pwd`/$CMD
|
||||
then su - ast -c "cd `pwd`; ./test$i" || FAIL=1
|
||||
else ./test$i || FAIL=1
|
||||
fi
|
||||
|
||||
if $CMD
|
||||
if [ $FAIL -eq 0 ]
|
||||
then passed=`expr $passed + 1`
|
||||
else failed=`expr $failed + 1`
|
||||
badones=`echo $badones " " $i`
|
||||
|
|
Loading…
Reference in a new issue