sanitycheck: adapt testsuite for build_only cleanup

Change tests to sync with changes in the library.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-07-27 11:58:18 -04:00 committed by Kumar Gala
commit 9603fe40bd

View file

@ -43,14 +43,13 @@ def test_check_build_or_run(class_testsuite, monkeypatch, all_testcases_dict, pl
testcase.slow = slow
testinstance = TestInstance(testcase, platform, class_testsuite.outdir)
testinstance.check_build_or_run(build_only, slow, device_testing, fixture)
run = testinstance.check_build_or_run(build_only, slow, device_testing, fixture)
b, r = expected
assert testinstance.build_only == b
assert testinstance.run == r
assert run == r
monkeypatch.setattr("os.name", "nt")
testinstance.check_build_or_run()
assert testinstance.build_only and not testinstance.run
run = testinstance.check_build_or_run()
assert not run
TESTDATA_2 = [
(True, True, True, ["demo_board_2"], "native", '\nCONFIG_COVERAGE=y\nCONFIG_COVERAGE_DUMP=y\nCONFIG_ASAN=y\nCONFIG_UBSAN=y'),