shithub: libvpx

Download patch

ref: cee0391b574e3b235ee151e77cf426dc1e2cdfba
parent: b7e9a463f88982505f938557bc9dcea1178b39c2
author: Jerome Jiang <jianj@google.com>
date: Mon Oct 15 13:10:22 EDT 2018

fix output file check in vpxenc tests script.

BUG=webm:1556

Change-Id: I4be40e9bf667cd9896017f38d866a47d3e19dcaf

--- a/test/vpxenc.sh
+++ b/test/vpxenc.sh
@@ -291,15 +291,14 @@
           --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 @@
           --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
 }