Use the value of TMPDIR instead of hardcoding 'tmp'.
In fact, in OE, we have:
TCLIBCAPPEND ?= "-${TCLIBC}"
TMPDIR .= "${TCLIBCAPPEND}"
So the TMPDIR defaults to have ${TCLIBC} in it.
Signed-off-by: Chen Qi <[email protected]>
---
meta/lib/oeqa/selftest/buildoptions.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/selftest/buildoptions.py
b/meta/lib/oeqa/selftest/buildoptions.py
index 25d14f7..c736dba 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -197,7 +197,8 @@ class ArchiverTest(oeSelfTest):
self.write_config("INHERIT += \"archiver\"\nARCHIVER_MODE[src] =
\"original\"\nARCHIVER_MODE[srpm] = \"1\"")
res = bitbake("xcursor-transparent-theme", ignore_status=True)
self.assertEqual(res.status, 0, "\nCouldn't build
xcursortransparenttheme.\nbitbake output %s" % res.output)
- pkgs_path = g.glob(str(self.builddir) +
"/tmp/deploy/sources/allarch*/xcurs*")
+ tmp_dir = get_bb_var('TMPDIR')
+ pkgs_path = g.glob(str(tmp_dir) + "/deploy/sources/allarch*/xcurs*")
src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm"
tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.gz"
- self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)),
"Couldn't find .src.rpm and .tar.gz files under
tmp/deploy/sources/allarch*/xcursor*")
+ self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)),
"Couldn't find .src.rpm and .tar.gz files under
%s/deploy/sources/allarch*/xcursor*" % tmp_dir)
--
1.9.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core