summaryrefslogtreecommitdiff
path: root/automated/linux
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-01-25 13:45:45 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-01-25 13:55:32 +0000
commitd9952928cd8081ff588c42a9db32e3efe10d98f3 (patch)
tree1ea09a6150fbccf25847086428f8392cb841cb5f /automated/linux
parentb7e3876bb33cdd55f645c2f55f5c9bb57d051eac (diff)
downloadtest-definitions-pipe-d9952928cd8081ff588c42a9db32e3efe10d98f3.tar.gz
automated/openjdk: fixed shellcheck warnings
Change-Id: I52acc71b65f6bbb635f498c9b8453a5676afe9b8 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'automated/linux')
-rwxr-xr-xautomated/linux/openjdk/openjdk-smoke.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/automated/linux/openjdk/openjdk-smoke.sh b/automated/linux/openjdk/openjdk-smoke.sh
index 29e9c28..2489198 100755
--- a/automated/linux/openjdk/openjdk-smoke.sh
+++ b/automated/linux/openjdk/openjdk-smoke.sh
@@ -3,6 +3,7 @@
. ../../lib/sh-test-lib
OUTPUT="$(pwd)/output"
RESULT_FILE="${OUTPUT}/result.txt"
+export RESULT_FILE
VERSION="8"
usage() {
@@ -26,6 +27,7 @@ if [ "${SKIP_INSTALL}" = "True" ] || [ "${SKIP_INSTALL}" = "true" ]; then
info_msg "JDK package installation skipped"
else
dist_name
+ # shellcheck disable=SC2154
case "${dist}" in
debian|ubuntu) pkg="openjdk-${VERSION}-jdk" ;;
centos|fedora) pkg="java-1.${VERSION}.0-openjdk-devel" ;;
@@ -49,6 +51,7 @@ exit_on_fail "check-java-version"
javac -version 2>&1 | grep "javac 1.${VERSION}"
exit_on_fail "check-javac-version"
+# shellcheck disable=SC2164
cd "${OUTPUT}"
cat > "HelloWorld.java" << EOL
public class HelloWorld {