diff options
| author | David Bremner <david@tethera.net> | 2022-03-20 18:33:54 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-06-17 08:40:19 -0300 |
| commit | a85c82f99a4a8971a057c4379aebf111439a1e52 (patch) | |
| tree | 7e551e5a91628e83be9f4ca17b3f090903359360 /notmuch-git.py | |
| parent | 14ac68ae112437fd25d7e76f8c78523a01d83804 (diff) | |
test: initial tests for notmuch-git
Exercise the main functionality of notmuch-git. add_git_repos() will
hopefully be simplifed when an init subcommand is added.
Diffstat (limited to 'notmuch-git.py')
| -rw-r--r-- | notmuch-git.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/notmuch-git.py b/notmuch-git.py index ce3c07bb..5475d0db 100644 --- a/notmuch-git.py +++ b/notmuch-git.py @@ -836,6 +836,10 @@ if __name__ == '__main__': level = getattr(_logging, args.log_level.upper()) _LOG.setLevel(level) + # for test suite + for var in ['NMBGIT', 'NMBPREFIX', 'NOTMUCH_PROFILE', 'NOTMUCH_CONFIG' ]: + _LOG.debug('env {:s} = {:s}'.format(var, _os.getenv(var,'%None%'))) + if not getattr(args, 'func', None): parser.print_usage() _sys.exit(1) |
