summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2013-06-22 12:48:24 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2013-06-22 12:48:24 +0100
commit0b2886d6a99ed7947f0ef20ce8117c9e63fe0cdc (patch)
treefd7f345f18c4dd4a856f260e7943aa33de5114da
parent4df14179ddf911a451e0538b9a14e0190d27c82a (diff)
downloadcmdtest-0b2886d6a99ed7947f0ef20ce8117c9e63fe0cdc.tar.bz2
Support multiple input files properly.HEADdsilvers/testing
There was a hiccough where yarn would forget content defined in earlier input files when parsing later ones. This fixes that.
-rwxr-xr-xyarn4
1 files changed, 3 insertions, 1 deletions
diff --git a/yarn b/yarn
index d9b2b47..6817294 100755
--- a/yarn
+++ b/yarn
@@ -67,11 +67,13 @@ class YarnRunner(cliapp.Application):
def parse_scenarios(self, filenames):
mdparser = yarnlib.MarkdownParser()
+ all_blocks = []
for filename in filenames:
mdparser.parse_file(filename)
+ all_blocks.extend(mdparser.blocks)
block_parser = yarnlib.BlockParser()
- block_parser.parse_blocks(mdparser.blocks)
+ block_parser.parse_blocks(all_blocks)
return block_parser.scenarios, block_parser.implementations