[TEST] fix time out error
authorsewon.oh <sewon.oh@samsung.com>
Fri, 2 Nov 2018 07:57:43 +0000 (16:57 +0900)
committersewon <sewon.oh@samsung.com>
Fri, 2 Nov 2018 08:56:05 +0000 (17:56 +0900)
Now, sleep 1 and minus value is 60. so timeout was 10 seconds.
fix that using interval value.

Signed-off-by: sewon.oh <sewon.oh@samsung.com>
packaging/nnstreamer.spec

index 5491efc..3d26bef 100644 (file)
@@ -107,14 +107,15 @@ pushd tests
 # The 'testAll.sh' script requires 6~7min to run armv7l binary files in the current CI server.
 # The timeout value is 10min as a heuristic value from our experience.
 timeout=600
+interval=60
 ./testAll.sh &
 pid=$!
 while ((timeout > 0)); do
-    sleep 1
+    sleep $interval
     if [[ ! $(ps | grep "$pid") ]]; then
         break;
     fi
-    (( timeout -= 60 ))
+    (( timeout -= interval ))
 done
 if [[ $(ps | grep "$pid") ]]; then
     kill $pid