summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-01-25 15:55:04 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2017-01-25 15:55:04 +0200
commit7a178e18840b172473a3ab6e0922d49e2023f7d1 (patch)
treecd66feb8b73cbc644a60e6c213405e1eae9b001b
parentb7e3876bb33cdd55f645c2f55f5c9bb57d051eac (diff)
automated: always convert dist to lower case
Change-Id: I5ab1e600776e83a56167e22b35b0e0520f85214a Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-xautomated/lib/sh-test-lib6
1 files changed, 2 insertions, 4 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index 6aac8a7..17334c6 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -170,11 +170,9 @@ dist_name() {
warn_msg "Unsupported distro: cannot determine distribution name"
fi
+ # convert dist to lower case
+ dist=$(echo ${dist} | tr '[:upper:]' '[:lower:]')
case "${dist}" in
- Debian) dist="debian" ;;
- Ubuntu) dist="ubuntu" ;;
- Fedora) dist="fedora" ;;
- CentOS) dist="centos" ;;
rpb|rpb-wayland|rpb-eglfs) dist="oe-based" ;;
esac
}