Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-04-01 02:39:06 +0000
committerDavid Williams2016-04-01 02:39:19 +0000
commit1223fb126d9d3aecd2f087c948158cb1c22e0ebc (patch)
tree8ec7084030cf313f2419feb2fa80249d5c5d315c /production/testScripts/updateTestResultsPages.sh
parent91f0b26ec5f2416465459a1274b0836a65e3db68 (diff)
downloadeclipse.platform.releng.aggregator-1223fb126d9d3aecd2f087c948158cb1c22e0ebc.tar.gz
eclipse.platform.releng.aggregator-1223fb126d9d3aecd2f087c948158cb1c22e0ebc.tar.xz
eclipse.platform.releng.aggregator-1223fb126d9d3aecd2f087c948158cb1c22e0ebc.zip
Bug 490834 - Fix TMP_DIR in "updateTestResults.sh" to ensure writeable.
Diffstat (limited to 'production/testScripts/updateTestResultsPages.sh')
-rwxr-xr-xproduction/testScripts/updateTestResultsPages.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/production/testScripts/updateTestResultsPages.sh b/production/testScripts/updateTestResultsPages.sh
index 037b78b07..78c8d12a4 100755
--- a/production/testScripts/updateTestResultsPages.sh
+++ b/production/testScripts/updateTestResultsPages.sh
@@ -261,9 +261,16 @@ then
# echo "Could not mkdir -p $dataDir. Return code was $RC. Exiting."
# exit $RC
# fi
+
# The performance UI function needs a DISPLAY to function, so we'll give it one via xvfb
+ # if
XVFB_RUN="xvfb-run"
- XVFB_RUN_ARGS="--error-file ${TMP_DIR}/xvfb-log.txt"
+ if [[ ! -w "${TMP_DIR}" ]]
+ then
+ TMP_DIR="${$buildRoot}/tmp/"
+ mkdir -p "${TMP_DIR}"
+ fi
+ XVFB_RUN_ARGS="--error-file ${TMP_DIR}/xvfbErrorFile.txt"
# --server-args -screen 0 1024x768x24"
#
if [[ ${buildType} =~ [INM] ]]

Back to the top