]> granicus.if.org Git - libvpx/commitdiff
fix output file check in vpxenc tests script.
authorJerome Jiang <jianj@google.com>
Tue, 16 Oct 2018 00:10:22 +0000 (17:10 -0700)
committerJerome Jiang <jianj@google.com>
Tue, 16 Oct 2018 03:35:17 +0000 (20:35 -0700)
BUG=webm:1556

Change-Id: I4be40e9bf667cd9896017f38d866a47d3e19dcaf

test/vpxenc.sh

index e24c10672e21b179eb5b02f0a94a5a650a614119..f94e2e094a3771517cf459e04f92d4e4808b915b 100755 (executable)
@@ -291,15 +291,14 @@ vpxenc_vp9_webm_rt_multithread_tiled() {
           --threads=${threads} \
           --tile-columns=${tile_cols} \
           --output="${output}"
+
+        if [ ! -e "${output}" ]; then
+          elog "Output file does not exist."
+          return 1
+        fi
+        rm "${output}"
       done
     done
-
-    if [ ! -e "${output}" ]; then
-      elog "Output file does not exist."
-      return 1
-    fi
-
-    rm "${output}"
   fi
 }
 
@@ -320,15 +319,13 @@ vpxenc_vp9_webm_rt_multithread_tiled_frameparallel() {
           --tile-columns=${tile_cols} \
           --frame-parallel=1 \
           --output="${output}"
+        if [ ! -e "${output}" ]; then
+          elog "Output file does not exist."
+          return 1
+        fi
+        rm "${output}"
       done
     done
-
-    if [ ! -e "${output}" ]; then
-      elog "Output file does not exist."
-      return 1
-    fi
-
-    rm "${output}"
   fi
 }