From 099049efb3e673b5bff2679ad082fb7fda36ac7a Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 26 Feb 2015 18:30:24 -0800 Subject: [PATCH] tools_common.sh: use $$ in VPX_TEST_OUTPUT_DIR a bit simpler than invoking awk for rand() Change-Id: I36ac474708f7bf0157ae59b882c2a9f69b0aaf41 --- test/tools_common.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/tools_common.sh b/test/tools_common.sh index dffd4c491..27785c3ef 100755 --- a/test/tools_common.sh +++ b/test/tools_common.sh @@ -383,8 +383,7 @@ else 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 @@ vlog "$(basename "${0%.*}") test configuration: 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} -- 2.40.0