]> 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>
Fri, 20 May 2016 01:55:23 +0000 (20:55 -0500)
commitb8b31ffc2a640fd088269204d412a28ffcd6e651
tree53f738441ae27677351f6901ef943e9055d1c9b0
parentcad3c11dc6f6a9e6c2037ee15e60091649626719
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