diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-06-17 21:03:49 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-07-04 11:41:57 +0000 |
commit | e7d6489cce98c2e59b85c73609f3d1ea03939570 (patch) | |
tree | 989a0913ae484692d6c1f6c610d32168e76208b9 | |
parent | 71bc61f4426273cef6d001d19fa745731df303cd (diff) | |
download | morph-e7d6489cce98c2e59b85c73609f3d1ea03939570.tar.gz |
sourceresolver_tests: Fix invalid backup definition
If we did end up trying to load a morphology that wasn't defined, we'd
get an unhelpful error about the yaml being invalid.
Change-Id: If1b182f1100430424a0fe62bd8938a88c1b9a11a
-rw-r--r-- | morphlib/sourceresolver_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/sourceresolver_tests.py b/morphlib/sourceresolver_tests.py index 956ec40c..07428496 100644 --- a/morphlib/sourceresolver_tests.py +++ b/morphlib/sourceresolver_tests.py @@ -116,7 +116,8 @@ class FakeLocalRepo(object): } return self.morphologies[filename] % values elif filename.endswith('.morph'): - return '''name: %s + return ''' + name: %s kind: chunk build-system: dummy''' % filename[:-len('.morph')] return 'text' |