This is an automated email from the ASF dual-hosted git repository.

mcvsubbu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new cf675a5  Setup classpath correctly for the compat test runner (#6160)
cf675a5 is described below

commit cf675a5f9e09df12dd2726786d91cb214046f931
Author: Subbu Subramaniam <mcvsu...@users.noreply.github.com>
AuthorDate: Tue Oct 20 08:49:10 2020 -0700

    Setup classpath correctly for the compat test runner (#6160)
---
 compatibility-verifier/compCheck.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/compatibility-verifier/compCheck.sh 
b/compatibility-verifier/compCheck.sh
index 238a8d1..16465ef 100755
--- a/compatibility-verifier/compCheck.sh
+++ b/compatibility-verifier/compCheck.sh
@@ -125,6 +125,15 @@ function stopServices() {
   echo "Cluster stopped."
 } 
 
+# Setup the path and classpath prefix for compatibility tester executable
+function setupCompatTester() {
+  COMPAT_TESTER="$(dirname $0)/../${COMPAT_TESTER_PATH}"
+  local pinotIntegTestsRelDir="$(dirname $0)/../pinot-integration-tests/target"
+  local pinotIntegTestsAbsDir=`(cd ${pinotIntegTestsRelDir};pwd)`
+  CLASSPATH_PREFIX=$(ls 
${pinotIntegTestsAbsDir}/pinot-integration-tests-*-tests.jar)
+  export CLASSPATH_PREFIX
+}
+
 #
 # Main
 #
@@ -132,7 +141,7 @@ function stopServices() {
 # cleanp the temporary directory when the bash script exits 
 trap cleanup EXIT
 
-COMPAT_TESTER="$(dirname $0)/../${COMPAT_TESTER_PATH}"
+setupCompatTester
 
 if [ $# -lt 2 ] || [ $# -gt 3 ] ; then
   usage compCheck


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to