support/testing: use .assertRunOk() when possible
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 26 Jun 2021 13:32:38 +0000 (15:32 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 26 Jun 2021 15:41:10 +0000 (17:41 +0200)
commitafc1ed4d5152e0f6e724e6986a1d12c8001b94fe
treeda4d0806d515d7d7f502e2960dec9ac15ccb84a2
parentf579afc3930506311068a6f2575a487a5bc8c8e1
support/testing: use .assertRunOk() when possible

The BRTest() class implements an assertRunOk() method that does the
very common work of running a command inside the emulator, and
checking that it is successful.

This commit changes all locations where this .assertRunOk() method can
be used, instead of open-coding the same logic.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
24 files changed:
support/testing/tests/fs/test_f2fs.py
support/testing/tests/fs/test_jffs2.py
support/testing/tests/fs/test_squashfs.py
support/testing/tests/init/base.py
support/testing/tests/init/test_none.py
support/testing/tests/init/test_systemd.py
support/testing/tests/package/test_atop.py
support/testing/tests/package/test_bmap_tools.py
support/testing/tests/package/test_docker_compose.py
support/testing/tests/package/test_dropbear.py
support/testing/tests/package/test_lua.py
support/testing/tests/package/test_netdata.py
support/testing/tests/package/test_openssh.py
support/testing/tests/package/test_opkg.py
support/testing/tests/package/test_perl.py
support/testing/tests/package/test_python.py
support/testing/tests/package/test_python_pytest.py
support/testing/tests/package/test_python_pytest_asyncio.py
support/testing/tests/package/test_redis.py
support/testing/tests/package/test_rust.py
support/testing/tests/package/test_s6_rc.py
support/testing/tests/package/test_sudo.py
support/testing/tests/package/test_syslog_ng.py
support/testing/tests/package/test_tmux.py