2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-21 17:35:55 +01:00

Ensure that 'waf test' raises a meaningful error message in the installation test

This commit is contained in:
Thomas Nagy 2019-06-02 09:24:52 +02:00
parent fa6496dbc4
commit 3e605feb72
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -11,7 +11,7 @@ def build(bld):
@TaskGen.feature('ruler')
@TaskGen.before('process_rule')
def test(self):
def test_helper(self):
if not self.bld.is_install or self.bld.is_install == Build.UNINSTALL:
while self.meths: # do not generate tasks: the target file may not be there
self.meths.pop()