summaryrefslogtreecommitdiff
path: root/tests.as-root
diff options
context:
space:
mode:
Diffstat (limited to 'tests.as-root')
-rwxr-xr-xtests.as-root/build-with-external-strata.script28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests.as-root/build-with-external-strata.script b/tests.as-root/build-with-external-strata.script
index fd021399..028bdef1 100755
--- a/tests.as-root/build-with-external-strata.script
+++ b/tests.as-root/build-with-external-strata.script
@@ -30,20 +30,20 @@ cd "$DATADIR/workspace"
cd "branch1"
"$SRCDIR/scripts/test-morph" edit hello-system stratum2
cd "test:external-strata"
-cat stratum2.morph | \
- head -n $(expr $(wc -l < stratum2.morph) - 3) > stratum2.morph
-cat <<EOF >> stratum2.morph
- },
- {
- "name": "linux",
- "repo": "test:kernel-repo",
- "ref": "master",
- "build-mode": "test",
- "build-depends": []
- }
- ]
-}
-EOF
+
+awk '
+ /^chunks:/ {
+ print $0
+ print "- name: linux"
+ print " repo: test:kernel-repo"
+ print " ref: master"
+ print " build-mode: test"
+ print " build-depends: []"
+ next
+ }
+ { print }
+' stratum2.morph > temp
+mv temp stratum2.morph
# Ignore Morph's output for now because it gives us:
# 2012-11-07 16:26:12 Overlaps in system artifact hello-system-rootfs detected