diff options
author | Bitbake Tester | 2020-01-12 20:20:40 -0500 |
---|---|---|
committer | Bitbake Tester | 2020-01-12 20:20:40 -0500 |
commit | 39b2544615cf42c76976b2893134a89883965b3d (patch) | |
tree | a17184e9b9c6928971fc155340ed673f632d8f8e | |
parent | 17232c95e72bb71e7120a1c97881e4f96f49b00c (diff) | |
download | aur-39b2544615cf42c76976b2893134a89883965b3d.tar.gz |
update git config to run tests
Signed-off-by: Bitbake Tester <test@bitbake.com>
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -17,13 +17,27 @@ source=("https://github.com/openembedded/bitbake/archive/${pkgver}.tar.gz") md5sums=('f1738e17e75c71166fb9f4ef7367ae51') check() { - git config --local user.email "test@bitbake.com" - git config --local user.name "Bitbake Tester" + if ! git config --global --get user.name; then + unset_name=1 + git config --global user.name "Bitbake Tester" + fi + if ! git config --global --get user.email; then + unset_email=1 + git config --global user.email "test@bitbake.com" + fi # use http over ftp to use travis grep -rl "[^s]ftp://" "${pkgname}-${pkgver}"/lib/bb/tests/*py | xargs sed -i 's@ftp://@http://@g' cd "${pkgbase}-${pkgver}/bin" git config --local -l PYTHONPATH="${srcdir}/${pkgbase}-${pkgver}/lib" python ./bitbake-selftest --failfast -v + if [ "${unset_name}" -eq 1 ]; then + unset_name=1 + git config --global --unset user.name + fi + if [ "${unset_email}" -eq 1 ]; then + unset_email=1 + git config --global --unset user.email + fi } package_bitbake() { |