From 7fa6d783190a7f2283b7799f6cc1409172020758 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 18 Dec 2012 17:22:43 +0000 Subject: Add a stratum build-dependency to all as-root tests --- tests.as-root/setup | 7 +++++++ tests.as-root/tarball-image-is-sensible.setup | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'tests.as-root') diff --git a/tests.as-root/setup b/tests.as-root/setup index a69dd94e..d3ba7ef4 100755 --- a/tests.as-root/setup +++ b/tests.as-root/setup @@ -129,6 +129,13 @@ cat < linux-stratum.morph { "name": "linux-stratum", "kind": "stratum", + "build-depends": [ + { + "morph": "hello-stratum", + "repo": "test:morphs", + "ref": "master" + } + ], "chunks": [ { "name": "linux", diff --git a/tests.as-root/tarball-image-is-sensible.setup b/tests.as-root/tarball-image-is-sensible.setup index 322038ba..c1c88993 100755 --- a/tests.as-root/tarball-image-is-sensible.setup +++ b/tests.as-root/tarball-image-is-sensible.setup @@ -69,6 +69,12 @@ cat < hello-tarball.morph EOF git add hello-tarball.morph +# Change build-depends ref of hello-stratum from master to tarball-links +sed -i linux-stratum.morph \ + -e '/"build-depends": \[/,/\]/ s/"ref": "master"/"ref": "tarball-links"/' + +git add linux-stratum.morph + cat < link-stratum.morph { "name": "link-stratum", -- cgit v1.2.1