[Tests/Filter/Tensorflow] bugfix: Fix a typo and wrong if-logic
authorWook Song <wook16.song@samsung.com>
Fri, 26 Jul 2019 06:44:08 +0000 (15:44 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 26 Jul 2019 14:12:38 +0000 (23:12 +0900)
This patch fixes a critical typo and wrong if-logic in order to make the
test cases properly run when the '/etc/nnstreamer.ini' is used.

Signed-off-by: Wook Song <wook16.song@samsung.com>
tests/nnstreamer_filter_tensorflow/runTest.sh

index c6db266..679cdea 100755 (executable)
@@ -36,7 +36,7 @@ if [[ -d $PATH_TO_PLUGIN ]]; then
 else
     ini_file="/etc/nnstreamer.ini"
     if [[ -f ${ini_file} ]]; then
-       path=$(grep "^filters" ${ini_path})
+       path=$(grep "^filters" ${ini_file})
        key=${path%=*}
        value=${path##*=}
 
@@ -59,10 +59,11 @@ else
            report
            exit
        fi
-    fi
-    echo "Cannot identify nnstreamer.ini"
-    report
-    exit
+       else
+               echo "Cannot identify nnstreamer.ini"
+               report
+               exit
+       fi
 fi
 
 # Test with mnist model