facebook / openbmc

OpenBMC is an open software framework to build a complete Linux image for a Board Management Controller (BMC).
633 stars 277 forks source link

circle-ci: cit: Add --skip-qemu-setup option #170

Closed peterdelevoryas closed 2 years ago

peterdelevoryas commented 2 years ago

Summary: This is useful for local testing, and fixing stuff. The intended way to use this is to start QEMU yourself, with whatever image you want to use for testing, and then run cit_test_wrapper.py with --skip-qemu-setup so that it just scp's and runs tests. This also avoids waiting for QEMU to boot the image everytime you rerun this.

Test Plan:

python3 tools/circle-ci/cit_test_wrapper.py fby3 -t tests.fby3.test_cfg_util.CfgUtilTest.test_cfg_util_set --skip-qemu-setup
start qemu cit test on platform: fby3
scp tests to BMC complete..
qemu flag set..
start CIT run in QEMU
tests.fby3.test_cfg_util.CfgUtilTest.test_cfg_util_set: pass
CIT test complete, PASS: 1, FAIL: 0, TOTAL: 1
facebook-github-bot commented 2 years ago

@peterdelevoryas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.