ref: 099049efb3e673b5bff2679ad082fb7fda36ac7a
parent: f1e0183c81ec3d01f43df7857e6985d216a4ec43
author: James Zern <[email protected]>
date: Thu Feb 26 13:30:24 EST 2015
tools_common.sh: use $$ in VPX_TEST_OUTPUT_DIR a bit simpler than invoking awk for rand() Change-Id: I36ac474708f7bf0157ae59b882c2a9f69b0aaf41
--- a/test/tools_common.sh
+++ b/test/tools_common.sh
@@ -383,8 +383,7 @@
VPX_TEST_TEMP_ROOT=/tmp
fi
-VPX_TEST_RAND=$(awk 'BEGIN { srand(); printf "%d\n",(rand() * 32768)}')
-VPX_TEST_OUTPUT_DIR="${VPX_TEST_TEMP_ROOT}/vpx_test_${VPX_TEST_RAND}"
+VPX_TEST_OUTPUT_DIR="${VPX_TEST_TEMP_ROOT}/vpx_test_$$"
if ! mkdir -p "${VPX_TEST_OUTPUT_DIR}" || \
[ ! -d "${VPX_TEST_OUTPUT_DIR}" ]; then
@@ -422,7 +421,6 @@
VPX_TEST_LIST_TESTS=${VPX_TEST_LIST_TESTS}
VPX_TEST_OUTPUT_DIR=${VPX_TEST_OUTPUT_DIR}
VPX_TEST_PREFIX=${VPX_TEST_PREFIX}
- VPX_TEST_RAND=${VPX_TEST_RAND}
VPX_TEST_RUN_DISABLED_TESTS=${VPX_TEST_RUN_DISABLED_TESTS}
VPX_TEST_SHOW_PROGRAM_OUTPUT=${VPX_TEST_SHOW_PROGRAM_OUTPUT}
VPX_TEST_TEMP_ROOT=${VPX_TEST_TEMP_ROOT}