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
1 changed files with 1 additions and 1 deletions

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()