]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa selftest context.py: fix git commands and set branch name
authorMikko Rapeli <mikko.rapeli@linaro.org>
Wed, 23 Aug 2023 06:10:23 +0000 (09:10 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Sep 2023 13:36:27 +0000 (14:36 +0100)
commit5ec557467dda29309e25102b507bb919275bedbb
tree1667acc8c7088304dfca67b2c692a896fca8b961
parent9a2493ea83f0b30578a819de05108502aaadc7f5
oeqa selftest context.py: fix git commands and set branch name

Check return values of each git command and set initial branch name
to avoid this warning on every test run:

NOTE: Starting bitbake server...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
meta/lib/oeqa/selftest/context.py