diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-01-25 14:15:43 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-01-26 18:44:15 +0000 |
commit | 7a69531c00ecf502fcd9912e3ed9a8d1e7f435a0 (patch) | |
tree | 42fe3c54ca3269b4efa6e915c0ae90532295176a /automated/linux/smoke | |
parent | c917abdefd3693fbd4d585efae802a10867b03fb (diff) |
automated: sh-test-lib: add check_root() when needed
In a few lib functions , we are running commands which require root. so let's
call check_root() whenever it's needed, to avoid adding the check in the test
scripts themselves.
For example , in many test case we use check_root() mostly because we want to
install packages with install_deps(). Let's add a call to check_root() in
install_deps() directly, since installing packages *always* require root. Then
we can remove un-needed checks from the test case themselves.
Change-Id: Ifd76dacf85f21825f2e47cd224a3725c69eba899
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'automated/linux/smoke')
0 files changed, 0 insertions, 0 deletions