]> arthur.barton.de Git - bup.git/commit
test-gc: sort ls output defensively before comm
authorRob Browning <rlb@defaultvalue.org>
Sat, 5 Nov 2016 19:36:20 +0000 (14:36 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 5 Nov 2016 19:40:55 +0000 (14:40 -0500)
commit16b177486dc753d95e8bd3335023d7b7605d5cb4
tree532c09a7c3fccbf0cd82dda199f6f8c8a8fcf365
parent6a262e2b79102112c1bea1223ab14a6ebbad22a2
test-gc: sort ls output defensively before comm

Explicitly sort the output of ls before passing it to comm in order to
accommodate some systems that apparently used to change the default sort
order.  The order must match LC_COLLATE for comm to work.

While we're here, improve error checking around the comm invocations.

Thanks to Nick Alcock for reporting the original problem, and proposing
an initial fix.

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