summaryrefslogtreecommitdiff
path: root/subplot.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-01-11 09:26:41 +0200
committerLars Wirzenius <liw@liw.fi>2020-01-11 09:26:41 +0200
commit1af5fa0d171cc764b937c734a15b4533561f4d67 (patch)
treeea10a397a472cada0104448ae7b85e37ddae036e /subplot.py
parent8de61284477998ba05423fb59a217601f01c510b (diff)
downloadsubplot-1af5fa0d171cc764b937c734a15b4533561f4d67.tar.gz
Change: sp-filter scenario to check it works without YAML metadata
Diffstat (limited to 'subplot.py')
-rw-r--r--subplot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subplot.py b/subplot.py
index fa03e54..287f819 100644
--- a/subplot.py
+++ b/subplot.py
@@ -29,6 +29,9 @@ def file_matches(ctx, filename=None, regex=None):
with open(filename) as f:
content = f.read()
m = re.search(regex, content)
+ if m is None:
+ print('content:', repr(content))
+ print('regex:', repr(regex))
assert_eq(bool(m), True)
def scenario_was_run(ctx, name=None):