diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-01-24 22:02:15 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-01-25 12:35:23 +0100 |
commit | 14c77d935aa059e9cad906f996885c163ed17f3f (patch) | |
tree | 72df8c55a031d67c85f66fc31c2db4c654fbca4f /automated/linux/ui-browser-test/ui-browser-test.sh | |
parent | c4c736ab2c4d19b08bc4434c74f0367f7449bfa6 (diff) |
automated: sh-test-lib: add support for /etc/os-release file
/etc/os-release is a standard file in most distro now, [1] and [2].
Let's use it as the default mechanism to detect the distro at run time, and keep
the old mechanisms as fallback.
Also
* defines 'oe-based' name for any known OE based releases, so that we can
adapt test cases accordingly.
* convert the ID name found in /etc/os-release into the one we used to have in
lsb_release (e.g. Ubuntu vs ubuntu, ... ).
[1] https://www.freedesktop.org/software/systemd/man/os-release.html
[2] http://0pointer.de/blog/projects/os-release.html
Change-Id: I1c9e11b449f8532450c8343bc29eb0aeec58c229
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'automated/linux/ui-browser-test/ui-browser-test.sh')
0 files changed, 0 insertions, 0 deletions