Skip to content

Commit 5b08c58

Browse files
committed
Check if we get reproducible sha1sums with a nonempty file
1 parent 5629805 commit 5b08c58

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/testfile.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hi

utils/create_xpi_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def constructZipDet():
5252
info.external_attr = 0600 << 16
5353
info.extract_version = 20
5454
info.file_size = long(info.file_size) # is int on some OS's
55-
xpiFile.writestr(info, '')
55+
xpiFile.writestr(info, open(testfile).read())
5656

5757
constructZipDet()
5858
xpiFile.close()

0 commit comments

Comments
 (0)