summaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-01-26 07:04:54 +0000
committerLinaro Code Review <review@review.linaro.org>2017-01-26 07:04:54 +0000
commite79f5b93819573b62e76979183b4c7b7501c4539 (patch)
tree1861837e424c17d0108272232363f0bf953c841c /automated
parentd9952928cd8081ff588c42a9db32e3efe10d98f3 (diff)
parent7a178e18840b172473a3ab6e0922d49e2023f7d1 (diff)
downloadtest-definitions-pipe-e79f5b93819573b62e76979183b4c7b7501c4539.tar.gz
Merge "automated: always convert dist to lower case"
Diffstat (limited to 'automated')
-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
}