]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ptest.bbclass: Handle the case when Makefile does not exist in do_install_ptest_base
authorKhem Raj <raj.khem@gmail.com>
Wed, 7 Feb 2024 06:02:38 +0000 (22:02 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Feb 2024 10:58:31 +0000 (10:58 +0000)
commit01f3966d6bf2442a28b460b67bfc02241cd9ddc2
treeb68c9bbdd2aa95bc2eb8db094fe582b7a5fe5cef
parent7dec33a8026d9aa96177060b13bb63d74eeb4855
ptest.bbclass: Handle the case when Makefile does not exist in do_install_ptest_base

Some recipes e.g. expant generate ninja files and no Makefile may exist,
therefore grep -q would fail on a non-existent file, we just need the
return code  to decide if intall-ptest target should be run or not.

Fixes errors like
| grep: Makefile: No such file or directory

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/ptest.bbclass