about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-04-13 00:13:49 +0200
committerhut <hut@lavabit.com>2012-04-13 00:15:09 +0200
commit9cf43c171c81eb14037bf595f23642091ed1aa19 (patch)
treecb010b22ad4aae9ff667d5676625fe4d845ea157 /ranger
parent654a81cacb2c8cf02d32c911fc87bc8d62fae698 (diff)
downloadranger-9cf43c171c81eb14037bf595f23642091ed1aa19.tar.gz
test rifle when running "make test"
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py6
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()