summaryrefslogtreecommitdiffstats
path: root/bitbake/README
diff options
context:
space:
mode:
authorPeter Hoyes <Peter.Hoyes@arm.com>2023-06-16 13:36:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-27 15:28:56 +0100
commit8b0fc4850dc31bb7e7be0001414468b1d3f80846 (patch)
treeac11c4c538f578e219297344c9dfea52f87d568b /bitbake/README
parentbaf345598d147fa798e4b1dd20992f8bed0a5c0e (diff)
downloadpoky-8b0fc4850dc31bb7e7be0001414468b1d3f80846.tar.gz
bitbake: bitbake: tests/fetch: Set git config if not already set
git config returns an error code if user.email or user.name are not set, so bb.process.run raises an ExecutionError, failing the test. Improve the logic by catching the ExectionError and using this to set a default value. Change a direct invocation of 'git init' to use self.git_init so that it follows the code path above. Remove the related comment from the README now that git sets up the user details automatically. (Bitbake rev: 0c7079d0609a13713b890a9675abd9fba032f199) Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/README')
-rw-r--r--bitbake/README3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/README b/bitbake/README
index a5f5c1b64f..bdb1e81dc1 100644
--- a/bitbake/README
+++ b/bitbake/README
@@ -45,8 +45,7 @@ it has so many corner cases. The datastore has many tests too. Testing with the
45recommended before submitting patches, particularly to the fetcher and datastore. We also 45recommended before submitting patches, particularly to the fetcher and datastore. We also
46appreciate new test cases and may require them for more obscure issues. 46appreciate new test cases and may require them for more obscure issues.
47 47
48To run the tests "zstd" and "git" must be installed. Git must be correctly configured, in 48To run the tests "zstd" and "git" must be installed.
49particular the user.email and user.name values must be set.
50 49
51The assumption is made that this testsuite is run from an initialized OpenEmbedded build 50The assumption is made that this testsuite is run from an initialized OpenEmbedded build
52environment (i.e. `source oe-init-build-env` is used). If this is not the case, run the 51environment (i.e. `source oe-init-build-env` is used). If this is not the case, run the