This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Isolate tests from user/system config
git-review behavior depends on git local, global and system configs. tests have the same dependencies against them but only manage git local config which implies the config expected by tests could not be the real one because of git global and system configs. The same trouble concerns gitreview global and system config files. This change allows to run git-review in local mode (only using git and gitreview local config files) by defining the environment variable "GITREVIEW_LOCAL_MODE". This mode is used by tests to isolate them from git and gitreview global and system configs. Mocking can not be used as functional tests call not git-review code but git-review system command. Change-Id: I598a284aec9e55f9618ab026c55ef0435e370d69 Closes-Bug: #1393192
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters