[test/SSAT] Fix minor SSAT test issues
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 6 Oct 2020 06:49:54 +0000 (15:49 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 6 Oct 2020 07:52:21 +0000 (16:52 +0900)
- Add an escape character in runTest.sh
- Open binary file with 'rb' mode, not 'r'

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
tests/nnstreamer_repo_lstm/runTest.sh
tests/transform_arithmetic/checkResult.py

index 88766fe..5f0cd34 100755 (executable)
@@ -61,7 +61,7 @@ tensor_demux name=demux \
         t. ! queue ! multifilesink location=\"out_%1d.log\" \
     tensor_reposrc slot-index=0 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)float32,framerate=(fraction)0/1\" ! mux.sink_0 \
     tensor_reposrc slot-index=1 silent=false caps=\"other/tensor,dimension=(string)4:4:4:1,type=(string)float32,framerate=(fraction)0/1\" ! mux.sink_1 \
-    filesrc location=\"video_4x4xBGRx.xraw\" ! application/octet-stream ! tensor_converter input-dim=4:4:4:1 input-type=float32 ! mux.sink_2" 
+    filesrc location=\"video_4x4xBGRx.xraw\" ! application/octet-stream ! tensor_converter input-dim=4:4:4:1 input-type=float32 ! mux.sink_2" \
 1 0 0 $PERFORMANCE
 
 callCompareTest lstm.golden out_9.log 1-1 "Compare 1-1" 1 0
index 07d0e0e..3d60233 100644 (file)
@@ -67,7 +67,7 @@ def testArithmetic (fna, fnb, typeasize, typebsize,typeapack, typebpack, mode, v
   return 0
 
 def readfile (filename):
-  F = open(filename, 'r')
+  F = open(filename, 'rb')
   readfile = F.read()
   F.close
   return readfile