Thanks to Alexander Barton <alex@barton.de> for reporting the problem.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Alexander Barton <alex@barton.de>
WVPASS bup init
WVPASS bup index -vu $(pwd)/$D/x "$tmpdir"
WVPASS bup save -t -n src $(pwd)/$D/x "$tmpdir"
- WVPASSEQ "$(bup ls -a src/latest)" \
-"$top_dir/
-tmp/"
+ # For now, assume that "ls -a" and "sort" use the same order.
+ WVPASSEQ "$(bup ls -a src/latest)" "$(echo -e "$top_dir/\ntmp/" | sort)"
) || WVFAIL