diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-11-06 17:06:38 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-11-12 16:48:18 +0000 |
commit | cbaa45c1dccec5bc5e7fd1650a6a2f99638ee65e (patch) | |
tree | e7e89af59724bdc346861d8b764789e891dbe5bd /tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script | |
parent | a49db7757e2d2902989dc0601eda93557d1ee55c (diff) | |
download | morph-cbaa45c1dccec5bc5e7fd1650a6a2f99638ee65e.tar.gz |
morph build: Use the user's own repos when building
This means that Morph no longer requires changes to be pushed in order
to build them.
The repos from the system branch are currently cached in the local
repo cache as part of the build process, which is far from ideal.
Tests for 'morph build' now test build without push. The build
metadata now includes a repo path that is inside the TMPDIR, so the
tests have been rewritten to avoid having any hardcoded cache keys
because the cache keys are no longer static.
Diffstat (limited to 'tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script')
-rwxr-xr-x | tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script b/tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script index ab84c431..9ccc3dee 100755 --- a/tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script +++ b/tests.as-root/building-a-system-branch-multiple-times-doesnt-generate-new-artifacts.script @@ -32,14 +32,14 @@ source "$SRCDIR/tests.as-root/setup-build" # Build once. cd "$DATADIR/workspace" "$SRCDIR/scripts/test-morph" build linux-system -"$SRCDIR/scripts/list-tree" "$DATADIR/cache/artifacts" +ARTIFACT_COUNT="$(ls "$DATADIR/cache/artifacts" | wc -l)" # Build twice. cd "$DATADIR/workspace/branch1" "$SRCDIR/scripts/test-morph" build linux-system -"$SRCDIR/scripts/list-tree" "$DATADIR/cache/artifacts" +[ "$ARTIFACT_COUNT" -eq $(ls "$DATADIR/cache/artifacts" | wc -l) ] # Build thrice, and that should be enough. cd "$DATADIR/workspace/branch1/test:morphs" "$SRCDIR/scripts/test-morph" build linux-system -"$SRCDIR/scripts/list-tree" "$DATADIR/cache/artifacts" +[ "$ARTIFACT_COUNT" -eq $(ls "$DATADIR/cache/artifacts" | wc -l) ] |