summaryrefslogtreecommitdiff
path: root/yarns/splitting.yarn
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-01-22 16:10:16 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-01-22 16:10:16 +0000
commit7265acd1440dc898d3ebe9de443a470c3d845b50 (patch)
tree44ad4e0a87c20cfd1635c691dbbb26c99a66bdd9 /yarns/splitting.yarn
parent28196991ede6bd5ed561fc7dc4a2b0084019df19 (diff)
parente30b0c73cb6805689c58b3ed9d5dd091218e2df3 (diff)
downloadmorph-7265acd1440dc898d3ebe9de443a470c3d845b50.tar.gz
Merge branch 'baserock/richardmaw/S10166/test-key-collision-with-artifact-names-v2' of git://git.baserock.org/baserock/baserock/morph
Reviewed-by: Lars Wirzenius
Diffstat (limited to 'yarns/splitting.yarn')
-rw-r--r--yarns/splitting.yarn17
1 files changed, 2 insertions, 15 deletions
diff --git a/yarns/splitting.yarn b/yarns/splitting.yarn
index e55d5ed0..40da5fb4 100644
--- a/yarns/splitting.yarn
+++ b/yarns/splitting.yarn
@@ -40,7 +40,7 @@ libraries.
The only change we need to make is to add a field to the system morphology
to select which artifact to use in the system.
- AND system test-system only uses test-stratum-runtime from test-stratum
+ AND system test-system uses test-stratum-runtime from test-stratum
WHEN the user checks out the system branch called master
The best way to test that only using some stratum artifacts works is
@@ -75,7 +75,7 @@ so we know that if the system successfully builds, then we only built
chunks that were needed.
AND stratum test-stratum has chunks that aren't used in test-stratum-minimal
- AND system test-system only uses test-stratum-minimal from test-stratum
+ AND system test-system uses test-stratum-minimal from test-stratum
WHEN the user checks out the system branch called master
THEN morph build the system test-system of the branch master
@@ -168,19 +168,6 @@ Implementations
run_in "$DATADIR/gits/morphs" git add "$MATCH_1.morph"
run_in "$DATADIR/gits/morphs" git commit -m 'Add default splitting rules'
- IMPLEMENTS GIVEN system (\S+) only uses (\S+) from (\S+)
- python -c 'import sys, yaml
- with open(sys.argv[1], "r") as f:
- d = yaml.load(f)
- for spec in d["strata"]:
- if spec["name"] == sys.argv[3]:
- spec["artifacts"] = [sys.argv[2]]
- with open(sys.argv[1], "w") as f:
- yaml.dump(d, f)
- ' "$DATADIR/gits/morphs/$MATCH_1.morph" "$MATCH_2" "$MATCH_3"
- run_in "$DATADIR/gits/morphs" git add "$MATCH_1.morph"
- run_in "$DATADIR/gits/morphs" git commit -m "Make $MATCH_1 only use $MATCH_2"
-
IMPLEMENTS GIVEN stratum (\S+) has chunks that aren't used in (\1-\S+)
# Create an extra chunk that will never successfully build
cat >"$DATADIR/gits/test-chunk/unbuildable-chunk.morph" <<EOF