summaryrefslogtreecommitdiff
path: root/tests.branching/add-then-edit.setup
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-13 16:40:37 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-14 16:59:36 +0000
commit5374f53985d357255126a917b107ce78ece5941d (patch)
tree1ca7fe5a228c1d89a4d8e19f3885bd00966e98ad /tests.branching/add-then-edit.setup
parent1c44afdafb32a803e2578ace2545c2fe36373538 (diff)
downloadmorph-5374f53985d357255126a917b107ce78ece5941d.tar.gz
Fix test suite to patch YAML instead of JSON
I shouldn't be doing this in the middle of refactoring, but trying to get the new code to emit exactly the right kind of JSON is too much pain, and these tests need to be rewritten to use YAML in the near future anyway (we'll drop JSON support eventually), so I don't want to spend more time on this than necessary. The changes in this commit convert morphologies in JSON to YAML, and fix test code that modifies the morphologies to work with the YAML. There is probably more JSON lurking about.
Diffstat (limited to 'tests.branching/add-then-edit.setup')
-rwxr-xr-xtests.branching/add-then-edit.setup11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests.branching/add-then-edit.setup b/tests.branching/add-then-edit.setup
index 7dbe28c0..bb58d05a 100755
--- a/tests.branching/add-then-edit.setup
+++ b/tests.branching/add-then-edit.setup
@@ -27,13 +27,10 @@ EOF
chmod +x goodbye
cat >goodbye.morph <<'EOF'
-{
- "name": "goodbye",
- "kind": "chunk",
- "install-commands": [
- "install goodbye \"$DESTDIR$PREFIX/bin/goodbye\""
- ]
-}
+name: goodbye
+kind: chunk
+install-commands:
+- install goodbye "$DESTDIR$PREFIX/bin/goodbye"
EOF
git init .
git add goodbye.morph goodbye