You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/book/examples/configuration_exception/wscript

16 lines
305 B
Python

#! /usr/bin/env python
"""
Tests should not rely on return codes and will return exceptions
in case of errors
"""
top = '.'
out = 'build'
def configure(ctx):
try:
ctx.find_program('some_app')
except ctx.errors.ConfigurationError:
ctx.to_log('some_app was not found (ignoring)')