summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/context.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index ab13131f29..adfb1170db 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -97,17 +97,17 @@ class OESelftestTestContext(OETestContext):
97 oe.path.copytree(builddir + "/cache", newbuilddir + "/cache") 97 oe.path.copytree(builddir + "/cache", newbuilddir + "/cache")
98 oe.path.copytree(selftestdir, newselftestdir) 98 oe.path.copytree(selftestdir, newselftestdir)
99 99
100 subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True)
101
102 # Tried to used bitbake-layers add/remove but it requires recipe parsing and hence is too slow
103 subprocess.check_output("sed %s/conf/bblayers.conf -i -e 's#%s#%s#g'" % (newbuilddir, selftestdir, newselftestdir), cwd=newbuilddir, shell=True)
104
100 for e in os.environ: 105 for e in os.environ:
101 if builddir + "/" in os.environ[e]: 106 if builddir + "/" in os.environ[e]:
102 os.environ[e] = os.environ[e].replace(builddir + "/", newbuilddir + "/") 107 os.environ[e] = os.environ[e].replace(builddir + "/", newbuilddir + "/")
103 if os.environ[e].endswith(builddir): 108 if os.environ[e].endswith(builddir):
104 os.environ[e] = os.environ[e].replace(builddir, newbuilddir) 109 os.environ[e] = os.environ[e].replace(builddir, newbuilddir)
105 110
106 subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True)
107
108 # Tried to used bitbake-layers add/remove but it requires recipe parsing and hence is too slow
109 subprocess.check_output("sed %s/conf/bblayers.conf -i -e 's#%s#%s#g'" % (newbuilddir, selftestdir, newselftestdir), cwd=newbuilddir, shell=True)
110
111 os.chdir(newbuilddir) 111 os.chdir(newbuilddir)
112 112
113 def patch_test(t): 113 def patch_test(t):