You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by el...@apache.org on 2019/06/05 12:05:24 UTC
[hadoop] branch trunk updated: HDDS-1628. Fix the execution and
return code of smoketest executor shell script
This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 42cd861 HDDS-1628. Fix the execution and return code of smoketest executor shell script
42cd861 is described below
commit 42cd861be08767f2388d9efdc5047c4840312c2e
Author: Márton Elek <el...@apache.org>
AuthorDate: Wed Jun 5 14:04:17 2019 +0200
HDDS-1628. Fix the execution and return code of smoketest executor shell script
Closes #902
---
hadoop-ozone/dev-support/checks/acceptance.sh | 3 ++-
hadoop-ozone/dist/src/main/compose/test-all.sh | 2 +-
hadoop-ozone/dist/src/main/smoketest/test.sh | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/dev-support/checks/acceptance.sh b/hadoop-ozone/dev-support/checks/acceptance.sh
index 0a4c5d6..8de920f 100755
--- a/hadoop-ozone/dev-support/checks/acceptance.sh
+++ b/hadoop-ozone/dev-support/checks/acceptance.sh
@@ -13,6 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export HADOOP_VERSION=3
-hadoop-ozone/dist/target/ozone-*-SNAPSHOT/smoketest/test.sh
+"$DIR/../../../hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/test-all.sh"
exit $?
diff --git a/hadoop-ozone/dist/src/main/compose/test-all.sh b/hadoop-ozone/dist/src/main/compose/test-all.sh
index 225acec..a17ef4d 100755
--- a/hadoop-ozone/dist/src/main/compose/test-all.sh
+++ b/hadoop-ozone/dist/src/main/compose/test-all.sh
@@ -34,7 +34,7 @@ for test in $(find $SCRIPT_DIR -name test.sh); do
#required to read the .env file from the right location
cd "$(dirname "$test")" || continue
- $test
+ ./test.sh
ret=$?
if [[ $ret -ne 0 ]]; then
RESULT=-1
diff --git a/hadoop-ozone/dist/src/main/smoketest/test.sh b/hadoop-ozone/dist/src/main/smoketest/test.sh
index b2cdfc3..e0a26b0 100755
--- a/hadoop-ozone/dist/src/main/smoketest/test.sh
+++ b/hadoop-ozone/dist/src/main/smoketest/test.sh
@@ -23,5 +23,6 @@ REPLACEMENT="$DIR/../compose/test-all.sh"
echo "THIS SCRIPT IS DEPRECATED. Please use $REPLACEMENT instead."
${REPLACEMENT}
-
+RESULT=$?
cp -r "$DIR/../compose/result" "$DIR"
+exit $RESULT
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org