]> arthur.barton.de Git - bup.git/commit
configure-sampledata: only create random paths if asked
authorRob Browning <rlb@defaultvalue.org>
Sun, 21 Jun 2020 16:29:23 +0000 (11:29 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 5 Jul 2020 16:16:23 +0000 (11:16 -0500)
commiteabe4037eb2807de40ca0a15fee0e3b3def01f63
tree0a5b649f0f5776869ffd8e68ee81177d1c27a130
parent848ebbe38e4d901be90783b43822d4ab55a32576
configure-sampledata: only create random paths if asked

Stop creating randomized paths in t/sampledata/ by default.  I'd
originally just added this to allow some quick testing, and while it
now appears to be fine on Linux/ext4, it's too aggressive to be the
default, so hide it behind a BUP_TEST_RANDOMIZED_SAMPLEDATA_PATHS
environment variable.

Among other things, make-random-paths just crashes on cirrus macos,
and cirrus freebsd was having (different) trouble.  It might also have
been macos where test-import-duplicity.sh failed on compare-trees
mismatches.  Not sure whether that was an issue with bup, rsync, or
duplicity.

We'll want to restore broader randomized path testing, but likely via
a less blunt instrument, since placing the paths in t/sampledata
affects any test that relies on it, and existing testing constructs
like

  WVPASSEQ ... $(... | wc -l)

are completely incompatible.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/configure-sampledata