summaryrefslogtreecommitdiff
path: root/automated/lib/sh-test-lib
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-02-06 12:06:01 +0800
committerChase Qi <chase.qi@linaro.org>2017-02-06 12:33:01 +0800
commit475120c780a115a49a06276125bc728eb06b9b0d (patch)
treef2bff71795615c33e9a17694f4b1e85e36aa4be2 /automated/lib/sh-test-lib
parentcaa8d4a0f5646b1e7d9a8df00b2583053b448470 (diff)
automated: use '*' instead of 'unknown' for unsupported distros
When dist_name() fails to detect distribution ID, it sets ${dist} to 'unknown'. install_deps() doesn't support 'unknown' distros, and it doesn't support some known distros like oe-rpb either. Using wildcard able to cover these two cases. Change-Id: I619e06d9dbc911c9629d6d6a7f1622c40ed1f234 Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/lib/sh-test-lib')
-rwxr-xr-xautomated/lib/sh-test-lib6
1 files changed, 3 insertions, 3 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index 1429db6..9030899 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -205,8 +205,8 @@ install_deps() {
# shellcheck disable=SC2086
dnf -e 0 -y install ${pkgs}
;;
- unknown)
- warn_msg "Unsupported distro: package install skipped"
+ *)
+ warn_msg "Unsupported distro: ${dist}! Package installation skipped."
;;
esac
fi
@@ -322,7 +322,7 @@ add_repo() {
wget -O - "${url}" >> "/etc/yum.repos.d/3rd-party.repo"
;;
*)
- warn_msg "Unsupported distro: add_repo skipped"
+ warn_msg "Unsupported distro: ${dist}! add_repo skipped"
;;
esac
}