summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/ptest.bbclass')
-rw-r--r--meta/classes/ptest.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 200446e52b..77614ae860 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -118,13 +118,15 @@ python () {
118 if not(d.getVar('PTEST_ENABLED') == "1"): 118 if not(d.getVar('PTEST_ENABLED') == "1"):
119 for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']: 119 for i in ['do_configure_ptest_base', 'do_compile_ptest_base', 'do_install_ptest_base']:
120 bb.build.deltask(i, d) 120 bb.build.deltask(i, d)
121}
121 122
123QARECIPETEST[missing-ptest] = "package_qa_check_missing_ptest"
124def package_qa_check_missing_ptest(pn, d, messages):
122 # This checks that ptest package is actually included 125 # This checks that ptest package is actually included
123 # in standard oe-core ptest images - only for oe-core recipes 126 # in standard oe-core ptest images - only for oe-core recipes
124 if not 'meta/recipes' in d.getVar('FILE') or not(d.getVar('PTEST_ENABLED') == "1"): 127 if not 'meta/recipes' in d.getVar('FILE') or not(d.getVar('PTEST_ENABLED') == "1"):
125 return 128 return
126 129
127 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'),d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split() 130 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'), d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split()
128 if (d.getVar('PN') + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests: 131 if (pn + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests:
129 bb.error("Recipe %s supports ptests but is not included in oe-core's conf/distro/include/ptest-packagelists.inc" % d.getVar("PN")) 132 package_qa_handle_error("missing-ptest", "supports ptests but is not included in oe-core's ptest-packagelists.inc", d)
130}