##// END OF EJS Templates
tests: fix a bug in `f` that prevented calculating sha1sum on a file
Matt Harbison -
r35487:ea4d27aa default
parent child Browse files
Show More
@@ -59,7 +59,7 b' def visit(opts, filenames, outfile):'
59 if isfile:
59 if isfile:
60 if opts.type:
60 if opts.type:
61 facts.append('file')
61 facts.append('file')
62 if opts.hexdump or opts.dump or opts.md5:
62 if opts.hexdump or opts.dump or opts.md5 or opts.sha1:
63 content = open(f, 'rb').read()
63 content = open(f, 'rb').read()
64 elif islink:
64 elif islink:
65 if opts.type:
65 if opts.type:
@@ -38,6 +38,9 b' Tests of the file helper tool'
38 $ f foo
38 $ f foo
39 foo:
39 foo:
40
40
41 $ f --sha1 foo
42 foo: sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
43
41 #if symlink
44 #if symlink
42 $ f foo --mode
45 $ f foo --mode
43 foo: mode=644
46 foo: mode=644
General Comments 0
You need to be logged in to leave comments. Login now