summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-09-29 12:28:25 +0100
committerLars Wirzenius <liw@liw.fi>2011-09-29 12:28:25 +0100
commite82f19d5c95b5a94582a85999c24410d98100099 (patch)
treea232ea4a8eee2faeb97492a735a76ad6730b8137 /morph
parent4277cde1f040f7aa3b913e12d8d847bea4a07408 (diff)
downloadmorph-e82f19d5c95b5a94582a85999c24410d98100099.tar.gz
Adapt cmdtest tests to chunk morphs no longer having a "source" field.
Diffstat (limited to 'morph')
-rwxr-xr-xmorph6
1 files changed, 5 insertions, 1 deletions
diff --git a/morph b/morph
index 95c6d212..84423944 100755
--- a/morph
+++ b/morph
@@ -36,10 +36,14 @@ class Morph(cliapp.Application):
self.settings.string(['git-base-url'],
'prepend URL to git repos that are not URLs',
metavar='URL')
+ self.settings.string(['chunk-repo'],
+ 'repository to use for a chunk morphology')
+ self.settings.string(['chunk-ref'],
+ 'commit reference to use for a chunk morphology')
def cmd_build(self, morph_filenames):
tempdir = morphlib.tempdir.Tempdir()
- builder = morphlib.builder.Builder(tempdir, self.msg)
+ builder = morphlib.builder.Builder(tempdir, self.msg, self.settings)
for name in morph_filenames:
self.msg('Building morphology %s' % name)
with self.open_input(name, 'r') as f: