You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2018/05/25 11:33:08 UTC

hive git commit: HIVE-19583: Some yetus working dirs are left on hivepest-server-upstream disk after test (Adam Szita, via Peter Vary)

Repository: hive
Updated Branches:
  refs/heads/master e84e89d78 -> 55025372a


HIVE-19583: Some yetus working dirs are left on hivepest-server-upstream disk after test (Adam Szita, via Peter Vary)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/55025372
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/55025372
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/55025372

Branch: refs/heads/master
Commit: 55025372ac6a3334af32ad1f83ce7c117eb7518d
Parents: e84e89d
Author: Adam Szita <sz...@cloudera.com>
Authored: Fri May 25 13:32:29 2018 +0200
Committer: Peter Vary <pv...@cloudera.com>
Committed: Fri May 25 13:32:29 2018 +0200

----------------------------------------------------------------------
 testutils/ptest2/src/main/resources/source-prep.vm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/55025372/testutils/ptest2/src/main/resources/source-prep.vm
----------------------------------------------------------------------
diff --git a/testutils/ptest2/src/main/resources/source-prep.vm b/testutils/ptest2/src/main/resources/source-prep.vm
index c7e06b9..4215f43 100644
--- a/testutils/ptest2/src/main/resources/source-prep.vm
+++ b/testutils/ptest2/src/main/resources/source-prep.vm
@@ -125,4 +125,9 @@ cd $workingDir/
    fi
    date +"%Y-%m-%d %T.%3N"
 ) 2>&1 | tee $logDir/source-prep.txt
-exit ${PIPESTATUS[0]}
+result=${PIPESTATUS[0]}
+if [ ${result} -ne 0 ]
+then
+  rm -rf yetus_${buildTag}
+fi
+exit ${result}