summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/layerappend.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/layerappend.py')
-rw-r--r--meta/lib/oeqa/selftest/layerappend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/layerappend.py b/meta/lib/oeqa/selftest/layerappend.py
index 4de5034a94..37bb32cd1d 100644
--- a/meta/lib/oeqa/selftest/layerappend.py
+++ b/meta/lib/oeqa/selftest/layerappend.py
@@ -55,7 +55,7 @@ SRC_URI_append += "file://appendtest.txt"
55 @testcase(1196) 55 @testcase(1196)
56 def test_layer_appends(self): 56 def test_layer_appends(self):
57 corebase = get_bb_var("COREBASE") 57 corebase = get_bb_var("COREBASE")
58 stagingdir = get_bb_var("STAGING_DIR_TARGET") 58
59 for l in ["0", "1", "2"]: 59 for l in ["0", "1", "2"]:
60 layer = os.path.join(corebase, "meta-layertest" + l) 60 layer = os.path.join(corebase, "meta-layertest" + l)
61 self.assertFalse(os.path.exists(layer)) 61 self.assertFalse(os.path.exists(layer))
@@ -83,6 +83,7 @@ SRC_URI_append += "file://appendtest.txt"
83 83
84 self.layerappend = "BBLAYERS += \"{0}/meta-layertest0 {0}/meta-layertest1 {0}/meta-layertest2\"".format(corebase) 84 self.layerappend = "BBLAYERS += \"{0}/meta-layertest0 {0}/meta-layertest1 {0}/meta-layertest2\"".format(corebase)
85 ftools.append_file(self.builddir + "/conf/bblayers.conf", self.layerappend) 85 ftools.append_file(self.builddir + "/conf/bblayers.conf", self.layerappend)
86 stagingdir = get_bb_var("SYSROOT_DESTDIR", "layerappendtest")
86 bitbake("layerappendtest") 87 bitbake("layerappendtest")
87 data = ftools.read_file(stagingdir + "/appendtest.txt") 88 data = ftools.read_file(stagingdir + "/appendtest.txt")
88 self.assertEqual(data, "Layer 2 test") 89 self.assertEqual(data, "Layer 2 test")