tests: helpers: use less random data
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 28 Nov 2012 08:30:07 +0000 (10:30 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 28 Nov 2012 09:15:55 +0000 (11:15 +0200)
commit49394ca6ee723ccfe90372341318a172bafe09da
tree7255afcd61de003a80353039135a4f2273e9e7c1
parentc0ffb0e04cf71bb18865584161be84ab1812674e
tests: helpers: use less random data

We do not need really random data in the files we generate - this only slows
the tests down a lot. Let's fill the files with semi-random data instead - just
pick a random byte and fill large regions with this byt. This also make
compression work faster, and it is good enough for our purposes.

Besides, this allows to reproduce tests by setting a known seed, which does not
work with os.urandom.

Change-Id: I0459ee44d271b8e19581e84cc33b7167e4ada166
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
tests/helpers.py