# HG changeset patch # User Matt Harbison # Date 1513820472 18000 # Node ID ea4d27aac55749644a1f5fc249a3e2c5f4c0cf3f # Parent a33be093ec62458599582687540842b15839b121 tests: fix a bug in `f` that prevented calculating sha1sum on a file diff -r a33be093ec62 -r ea4d27aac557 tests/f --- 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: diff -r a33be093ec62 -r ea4d27aac557 tests/test-tools.t --- 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