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/bbtests.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/bbtests.py 
b/meta/lib/oeqa/selftest/bbtests.py
index 08cc401..cd36dd8 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -235,8 +235,9 @@ INHERIT_remove = \"report-error\"
         self.addCleanup(ftools.remove_from_file, conf ,data)
         result = bitbake('readline', ignore_status=True)
         self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, 
output %s" % (result.status, result.output))
-        self.assertFalse(os.path.isfile(os.path.join(self.builddir, 
'tmp/deploy/licenses/readline/generic_GPLv3')))
-        self.assertTrue(os.path.isfile(os.path.join(self.builddir, 
'tmp/deploy/licenses/readline/generic_GPLv2')))
+        tmp_dir = get_bb_var('TMPDIR')
+        self.assertFalse(os.path.isfile(os.path.join(tmp_dir, 
'deploy/licenses/readline/generic_GPLv3')))
+        self.assertTrue(os.path.isfile(os.path.join(tmp_dir, 
'deploy/licenses/readline/generic_GPLv2')))
 
     @testcase(1422)
     def test_setscene_only(self):
-- 
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to