diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-12-19 09:30:02 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-12-19 09:30:02 +1100 |
commit | 6c016168ee47aa389960c9ad151c25bfc54b9c68 (patch) | |
tree | d5731891932ce6c6a3726b408263fb8614c7c6a5 | |
parent | 224db32b2f4b2add6819473383f525cfaf472470 (diff) | |
parent | 87328a8d5c1d4a201a1df604ba32a87863948bbb (diff) | |
download | mongo-6c016168ee47aa389960c9ad151c25bfc54b9c68.tar.gz |
Merge pull request #1498 from markbenvenuto/test_fix_salvage
fix test_salvage.py on Windows
-rw-r--r-- | test/suite/test_salvage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/suite/test_salvage.py b/test/suite/test_salvage.py index ddafe8d6f2f..bd6de5f90f3 100644 --- a/test/suite/test_salvage.py +++ b/test/suite/test_salvage.py @@ -120,8 +120,9 @@ class test_salvage(wttest.WiredTigerTestCase, suite_subprocess): found = matchpos = 0 match = self.unique matchlen = len(match) + flen = os.fstat(fp.fileno()).st_size c = fp.read(1) - while c: + while fp.tell() != flen: if match[matchpos] == c: matchpos += 1 if matchpos == matchlen: |