Skip to content

Commit 6d64e6e

Browse files
committed
bdd: skip tests against lua style file when lua not compiled in
1 parent e9ca7ca commit 6d64e6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/bdd/steps/steps_execute.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def setup_inline_lua_style(context):
9898

9999
@given("the style file '(?P<style>.+)'")
100100
def setup_style_file(context, style):
101+
if style.endswith('.lua') and not context.config.userdata['HAVE_LUA']:
102+
context.scenario.skip("Lua support not compiled in.")
103+
return
104+
101105
context.osm2pgsql_params.extend(('-S', str(context.test_data_dir / style)))
102106

103107

0 commit comments

Comments
 (0)