]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Jun 2021 07:38:31 +0000 (08:38 +0100)
commit086e2ae7b2b7496b4f3ae01436b4049d7f2ff8c4
treeb7c958e320c4008a49a492a8405dbcf4fa6b2850
parent4edcfbace258d94d814c7d61f467e5384e2645fb
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>
meta/lib/oeqa/selftest/cases/fetch.py