mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
oeqa/selftest/devtool: ensure Git username is set before upgrade tests
The 'devtool upgrade' tests fail if Git doesn't know the user's name or email, so verify this before the tests start and skip if it is not. (From OE-Core rev: b4d8aca97a1ead38ce55f3bb5859d3d05d9dd84f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c580bc6008
commit
13a1e484c3
@@ -1471,6 +1471,14 @@ class DevtoolExtractTests(DevtoolBase):
|
||||
|
||||
class DevtoolUpgradeTests(DevtoolBase):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
try:
|
||||
runCmd("git config --global user.name")
|
||||
runCmd("git config --global user.email")
|
||||
except:
|
||||
self.skip("Git user.name and user.email must be set")
|
||||
|
||||
def test_devtool_upgrade(self):
|
||||
# Check preconditions
|
||||
self.assertTrue(not os.path.exists(self.workspacedir), 'This test cannot be run with a workspace directory under the build directory')
|
||||
|
||||
Reference in New Issue
Block a user