From 0ed9e2337b03cd1a6720c80a0696b7594c687e7a Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Tue, 6 Oct 2020 15:49:54 +0900 Subject: [PATCH] [test/SSAT] Fix minor SSAT test issues - Add an escape character in runTest.sh - Open binary file with 'rb' mode, not 'r' Signed-off-by: Yongjoo Ahn --- tests/nnstreamer_repo_lstm/runTest.sh | 2 +- tests/transform_arithmetic/checkResult.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nnstreamer_repo_lstm/runTest.sh b/tests/nnstreamer_repo_lstm/runTest.sh index 88766fe..5f0cd34 100755 --- a/tests/nnstreamer_repo_lstm/runTest.sh +++ b/tests/nnstreamer_repo_lstm/runTest.sh @@ -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 diff --git a/tests/transform_arithmetic/checkResult.py b/tests/transform_arithmetic/checkResult.py index 07d0e0e..3d60233 100644 --- a/tests/transform_arithmetic/checkResult.py +++ b/tests/transform_arithmetic/checkResult.py @@ -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 -- 2.7.4