support/testing: factor out run_cmd_on_host
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Thu, 8 Aug 2019 23:10:13 +0000 (20:10 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 11 Aug 2019 20:11:58 +0000 (22:11 +0200)
commit620c98a214dd2acc4b599de46eb959fb4a57b965
treeb20b6c6fd70edf567d12fd179a0194a738f93e58
parent1b2928201f272eb2e817e9be2ebb92bd155b4e71
support/testing: factor out run_cmd_on_host

Currently many test cases call subprocess.check_output on their own.
Factor out that code to an infra method so the call get standardized.

This will be handful when switching the test infra to use Python 3.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/infra/__init__.py
support/testing/tests/core/test_hardening.py
support/testing/tests/fs/test_ext.py
support/testing/tests/fs/test_f2fs.py
support/testing/tests/fs/test_jffs2.py
support/testing/tests/fs/test_squashfs.py
support/testing/tests/fs/test_ubi.py