git-repo/tests
Marcos Marado 2735bfc5ff tests: fix SetupGnuPG test
The SetupGnuPG test tries to test the full setup, including the
creation of the directories. In order to do that, it create a
temporary directory, and redefines the home_dot_repo to point there.

When a home_dot_repo directory does not exist, it should be created.
The gpg_dir, which should exist inside home_dot_repo, also needs to be
created if it does not exist. However, since the gpg_dir path is
relative to home_dot_repo, once we redefine one, we need to redifine
the other.

The failure of this test might have gone unnoticed so far, since in
only fails if you do not have a ~/.repoconfig/gnupg/ on the
environment you are running the tests on.

Change-Id: Ic69d59e56137eea43349a61b5cf81f215c6a7f9a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/262573
Reviewed-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Marcos Marado <mindboosternoori@gmail.com>
2020-04-12 17:12:14 +00:00
..
fixtures git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_editor.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
test_git_command.py tests: add git_require coverage 2020-02-20 06:55:22 +00:00
test_git_config.py git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_manifest_xml.py manifest_xml: unify bool & int parsing 2020-03-13 18:48:52 +00:00
test_project.py manifest/tests: get them passing under Windows 2020-02-21 05:17:05 +00:00
test_wrapper.py tests: fix SetupGnuPG test 2020-04-12 17:12:14 +00:00