Restore the original current directory at the end of
vp9_c_vs_simd_enc_test().
Bug: webm:1800
Change-Id: Iad64848a231e3c900149cc2b248055b02dda80a6
}
# Environment check: Make sure input and source directories are available.
-vp9_c_vs_simd_enc_verify_environment () {
+vp9_c_vs_simd_enc_verify_environment() {
if [ ! -e "${YUV_RAW_INPUT}" ]; then
elog "libvpx test data must exist in LIBVPX_TEST_DATA_PATH."
return 1
fi
}
-vp9_c_vs_simd_enc_test () {
+vp9_c_vs_simd_enc_test() {
+ local save_dir=$(pwd)
+
# Test Generic
vp9_test_generic
else
echo "vp9 test for arm: Done, all tests passed."
fi
+
+ cd ${save_dir}
}
# Setup a trap function to clean up build, and output files after tests complete.