Commit Graph

11 Commits

Author SHA1 Message Date
Augie Fackler
f65126095d tests: update f helper script to work on Python 3 2017-09-18 13:37:32 -04:00
Pulkit Goyal
fff4a98b2d py3: use open() instead of file() constructor
The file() constructor has been removed in python 3.
2017-06-17 17:16:28 +05:30
Yuya Nishihara
69cfb792fd tests: make 'f' utility import hashlib unconditionally
It must exist on Python 2.5+.
2016-05-15 10:45:32 +09:00
Yuya Nishihara
b48c8b4cf5 tests: remove unused import from 'f' utility
It should have been caught by pyflakes.
2016-05-15 10:39:44 +09:00
Pulkit Goyal
c8f1089fcf py3: make tests/f use absolute_import 2016-05-13 03:28:44 +05:30
FUJIWARA Katsunori
32db5d850a f: use modern octal number formatting
This is fixing for 'legacy octal syntax; use "0o" prefix instead of
"0"' check-code rule.

check-code has overlooked this, because a file isn't recognized as one
to be checked (this problem is fixed by subsequent patch).
2016-02-10 22:44:28 +09:00
FUJIWARA Katsunori
5accfbf33e f: add whitespace around operator
This is fixing for 'missing whitespace in expression' check-code rule.

check-code has overlooked this, because a file isn't recognized as one
to be checked (this problem is fixed by subsequent patch).
2016-02-10 22:44:28 +09:00
Matt Harbison
cbc163de28 tests: make 'f' tool open files in binary mode when hexdumping
On Windows, the various bundle hexdumps were being truncated at the first
occurrence of 0x1a.  The line endings in the sequence generation then needs to
be standardized on LF so that the file is the same for the tool tests.
2015-11-09 12:49:31 -05:00
Matt Mackall
733026a365 tests: teach f not to report symlink mode bits
They're not meaningful or portable
2015-01-17 13:53:56 -08:00
Matt Mackall
f958134a57 tests: teach f not to report directory size
It's not meaningful or portable
2015-01-17 13:53:16 -08:00
Mads Kiilerich
de81c27e94 tests: add 'f' tool for cross platform file operations in the tests
This tool is like the collection of tools found in a unix environment but are
cross platform and stable and suitable for our needs in the test suite.

The main reason it is "needed" now is for hexdump of revision branch cache to
keep an eye on how it changes and make sure the format is stable.

It is a very generic tool that can end up being used a lot in tests, so I gave
it very generic name.
2015-01-14 01:15:26 +01:00