Skip to content
Commit 8c2d92f8 authored by Richard Purdie's avatar Richard Purdie Committed by Anuj Mittal
Browse files

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: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 086e2ae7)
Signed-off-by: default avatarAnuj Mittal <anuj.mittal@intel.com>
parent d96dc634
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment