From: Rob Browning Date: Thu, 24 Dec 2015 17:00:31 +0000 (-0600) Subject: Set sort LC_ALL=C correctly in test-meta and test-xdev X-Git-Tag: 0.28-rc1~48 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=08808a1417e5df6e7f313e05435635ee65b2815f Set sort LC_ALL=C correctly in test-meta and test-xdev Signed-off-by: Rob Browning Tested-by: Rob Browning --- diff --git a/t/test-meta.sh b/t/test-meta.sh index 3f7f3a6..1170d71 100755 --- a/t/test-meta.sh +++ b/t/test-meta.sh @@ -417,13 +417,13 @@ WVSTART 'meta --no-recurse' WVPASS mkdir src/foo WVPASS touch src/foo/{1,2,3} WVPASS bup meta -cf src.meta src - WVPASSEQ "$(LC_ALL=C; bup meta -tf src.meta | sort)" "src/ + WVPASSEQ "$(bup meta -tf src.meta | LC_ALL=C sort)" "src/ src/foo/ src/foo/1 src/foo/2 src/foo/3" WVPASS bup meta --no-recurse -cf src.meta src - WVPASSEQ "$(LC_ALL=C; bup meta -tf src.meta | sort)" "src/" + WVPASSEQ "$(bup meta -tf src.meta | LC_ALL=C sort)" "src/" WVPASS rm -r "$tmpdir" ) || exit $? diff --git a/t/test-xdev.sh b/t/test-xdev.sh index 8c0cdb1..c71df93 100755 --- a/t/test-xdev.sh +++ b/t/test-xdev.sh @@ -67,7 +67,8 @@ WVPASS bup save -n src src WVPASS mkdir src-restore WVPASS bup restore -C src-restore "/src/latest$(pwd)/" WVPASS test -d src-restore/src -WVPASSEQ "$(cd src-restore/src && find . -not -name lost+found | sort)" ". +WVPASSEQ "$(cd src-restore/src && find . -not -name lost+found | LC_ALL=C sort)" \ +". ./1 ./mnt"