shithub: libvpx

Download patch

ref: 97e7da486242842f2636067ae6bbc7aa21405ea3
parent: 69a4ed0dd448ba51c6b23240594a3fb71f0e8d0e
parent: cee0391b574e3b235ee151e77cf426dc1e2cdfba
author: Jerome Jiang <jianj@google.com>
date: Tue Oct 16 02:09:36 EDT 2018

Merge "fix output file check in vpxenc tests script."

--- 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
 }