--- a/tests/f Thu Dec 21 22:17:39 2017 +0900
+++ b/tests/f Wed Dec 20 20:41:12 2017 -0500
@@ -59,7 +59,7 @@
if isfile:
if opts.type:
facts.append('file')
- if opts.hexdump or opts.dump or opts.md5:
+ if opts.hexdump or opts.dump or opts.md5 or opts.sha1:
content = open(f, 'rb').read()
elif islink:
if opts.type:
--- a/tests/test-tools.t Thu Dec 21 22:17:39 2017 +0900
+++ b/tests/test-tools.t Wed Dec 20 20:41:12 2017 -0500
@@ -38,6 +38,9 @@
$ f foo
foo:
+ $ f --sha1 foo
+ foo: sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
+
#if symlink
$ f foo --mode
foo: mode=644