Author: brock
Date: Sun Oct 26 17:17:29 2014
New Revision: 1634363
URL: http://svn.apache.org/r1634363
Log:
HIVE-8552 - Remove hard code of offline and make addHost api public (Brock
reviewed by Szehon)
Modified:
hive/trunk/testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/context/ExecutionContext.java
hive/trunk/testutils/ptest2/src/main/resources/batch-exec.vm
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testAlternativeTestJVM.approved.txt
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testBatch.approved.txt
Modified:
hive/trunk/testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/context/ExecutionContext.java
URL:
http://svn.apache.org/viewvc/hive/trunk/testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/context/ExecutionContext.java?rev=1634363&r1=1634362&r2=1634363&view=diff
==============================================================================
---
hive/trunk/testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/context/ExecutionContext.java
(original)
+++
hive/trunk/testutils/ptest2/src/main/java/org/apache/hive/ptest/execution/context/ExecutionContext.java
Sun Oct 26 17:17:29 2014
@@ -46,7 +46,7 @@ public class ExecutionContext {
public void clearBadHosts() {
mBadHosts.clear();
}
- void addHost(Host host) {
+ public void addHost(Host host) {
mHosts.add(host);
}
boolean removeHost(Host host) {
Modified: hive/trunk/testutils/ptest2/src/main/resources/batch-exec.vm
URL:
http://svn.apache.org/viewvc/hive/trunk/testutils/ptest2/src/main/resources/batch-exec.vm?rev=1634363&r1=1634362&r2=1634363&view=diff
==============================================================================
--- hive/trunk/testutils/ptest2/src/main/resources/batch-exec.vm (original)
+++ hive/trunk/testutils/ptest2/src/main/resources/batch-exec.vm Sun Oct 26
17:17:29 2014
@@ -62,7 +62,7 @@ then
testModule=./
fi
pushd $testModule
- timeout 2h mvn -B -o test -Dmaven.repo.local=$localDir/$instanceName/maven \
+ timeout 2h mvn -B test -Dmaven.repo.local=$localDir/$instanceName/maven \
$mavenArgs $mavenTestArgs $testArguments 1>$logDir/maven-test.txt 2>&1
</dev/null &
#[[
pid=$!
Modified:
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testAlternativeTestJVM.approved.txt
URL:
http://svn.apache.org/viewvc/hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testAlternativeTestJVM.approved.txt?rev=1634363&r1=1634362&r2=1634363&view=diff
==============================================================================
---
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testAlternativeTestJVM.approved.txt
(original)
+++
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testAlternativeTestJVM.approved.txt
Sun Oct 26 17:17:29 2014
@@ -61,7 +61,7 @@ then
testModule=./
fi
pushd $testModule
- timeout 2h mvn -B -o test
-Dmaven.repo.local=/some/local/dir/instance-1/maven \
+ timeout 2h mvn -B test -Dmaven.repo.local=/some/local/dir/instance-1/maven \
$mavenArgs $mavenTestArgs -Dtest=arg1 1>/some/log/dir/maven-test.txt 2>&1
</dev/null &
pid=$!
Modified:
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testBatch.approved.txt
URL:
http://svn.apache.org/viewvc/hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testBatch.approved.txt?rev=1634363&r1=1634362&r2=1634363&view=diff
==============================================================================
---
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testBatch.approved.txt
(original)
+++
hive/trunk/testutils/ptest2/src/test/java/org/apache/hive/ptest/execution/TestScripts.testBatch.approved.txt
Sun Oct 26 17:17:29 2014
@@ -61,7 +61,7 @@ then
testModule=./
fi
pushd $testModule
- timeout 2h mvn -B -o test
-Dmaven.repo.local=/some/local/dir/instance-1/maven \
+ timeout 2h mvn -B test -Dmaven.repo.local=/some/local/dir/instance-1/maven \
-Dant=arg1 $mavenTestArgs -Dtest=arg1 1>/some/log/dir/maven-test.txt 2>&1
</dev/null &
pid=$!