]> code.ossystems Code Review - openembedded-core.git/commit
selftest/fetch: Avoid occasional selftest failure from poor temp file name choice
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jun 2021 22:21:56 +0000 (23:21 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Wed, 30 Jun 2021 06:02:49 +0000 (14:02 +0800)
commit8c2d92f855fe0d692228f7ebf7e7b116195ccf0c
treeca58666bbcc25f9e040b5f296fa3961f79c8b9f1
parentd96dc6345619977748a1dbb4ed981d031d7ecee6
selftest/fetch: Avoid occasional selftest failure from poor temp file name choice

The temp file name may contain "_" characters. Switch to a temporary directory
and a fixed filename to avoid this to avoid errors like:

bb.data_smart.ExpansionError: Failure expanding variable PN, expression was
${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}
which triggered exception ParseError:
ParseError in /tmp/tmpd_f2__to.bb: Unable to generate default variables from
filename (too many underscores)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 086e2ae7b2b7496b4f3ae01436b4049d7f2ff8c4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oeqa/selftest/cases/fetch.py