]> arthur.barton.de Git - bup.git/commit
Use $RANDOM seed for --sparse random tests
authorRob Browning <rlb@defaultvalue.org>
Sun, 24 Apr 2016 22:07:39 +0000 (17:07 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 25 Apr 2016 00:09:42 +0000 (19:09 -0500)
commit6cc4ba20587026cc399b79b386148b2311f4bdb6
tree9ccf6cd7d09c15a4cf91cb70dceda3722aea8e3e
parentd612d9a599590cb53a76711754f9e031f66a330a
Use $RANDOM seed for --sparse random tests

Since bup random defaults to a fixed random seed of 1, the restore
--sparse test for random data was actually testing the same data every
time.  Specify a $RANDOM --seed to fix that.

After this change, the affected test fails fairly often.

Thanks to Frank Gevaerts for help evaluating the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test-sparse-files.sh