package audit: ensure stand-alone test method not include in build-phase testing (#30352)

This commit is contained in:
Tamara Dahlgren
2022-05-05 09:04:16 -07:00
committed by GitHub
parent c9714533f3
commit 011a491b16
3 changed files with 22 additions and 2 deletions

View File

@@ -16,8 +16,8 @@ class TestBuildCallbacks(Package):
version('1.0', '0123456789abcdef0123456789abcdef')
phases = ['build', 'install']
# set to undefined method
build_time_test_callbacks = ['undefined-build-test']
# Include undefined method (runtime failure) and 'test' (audit failure)
build_time_test_callbacks = ['undefined-build-test', 'test']
run_after('build')(Package._run_default_build_time_test_callbacks)
def build(self, spec, prefix):