[Bugfix] callCMP is no more NYI. missing shift/unset IFS
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 31 Oct 2018 02:48:20 +0000 (11:48 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 31 Oct 2018 02:48:20 +0000 (11:48 +0900)
- Missing IFS caused incorrect behaviors of gstTest.
- Missing shift caused incorrect test target designation
- CallCMP is no more NYI.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
ssat-api.sh
ssat.sh

index b4ef5a7..b62b70b 100644 (file)
@@ -211,12 +211,11 @@ function callTestExitEq {
 # @param $6 set 1 if this is not critical (don't care if it's pass or fail)_
 function callCompareTest {
        # Try cmp.
-       command -v cmp
        output=0
+       command -v cmp
        if (( $? == 0 ))
        then
                # use cmp
-               echo NYI
                if (( $5 == 0 )); then
                        # Size should be same as well.
                        cmp $1 $2
diff --git a/ssat.sh b/ssat.sh
index 2fba709..3a5b9a3 100755 (executable)
--- a/ssat.sh
+++ b/ssat.sh
@@ -109,6 +109,7 @@ do
        ;;
        *) # Unknown, which is probably target (the path to root-dir of test groups).
        TARGET="$1"
+       shift
        esac
 done
 
@@ -153,6 +154,7 @@ do
        Ntc=$1
        Npass=$2
        Nfail=$3
+       unset IFS
 
        TNtc=$((TNtc+Ntc))
        TNtcpass=$((TNtcpass+Npass))