diff options
author | hut <hut@lavabit.com> | 2012-04-13 00:13:49 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-04-13 00:15:09 +0200 |
commit | 9cf43c171c81eb14037bf595f23642091ed1aa19 (patch) | |
tree | cb010b22ad4aae9ff667d5676625fe4d845ea157 /ranger | |
parent | 654a81cacb2c8cf02d32c911fc87bc8d62fae698 (diff) | |
download | ranger-9cf43c171c81eb14037bf595f23642091ed1aa19.tar.gz |
test rifle when running "make test"
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/ext/rifle.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 59351095..c0658c17 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -339,4 +339,8 @@ def main(): if __name__ == '__main__': - main() + if 'RANGER_DOCTEST' in os.environ: + import doctest + doctest.testmod() + else: + main() |