]> arthur.barton.de Git - bup.git/commitdiff
Set sort LC_ALL=C correctly in test-meta and test-xdev
authorRob Browning <rlb@defaultvalue.org>
Thu, 24 Dec 2015 17:00:31 +0000 (11:00 -0600)
committerRob Browning <rlb@defaultvalue.org>
Thu, 24 Dec 2015 17:00:40 +0000 (11:00 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-meta.sh
t/test-xdev.sh

index 3f7f3a677f375a0355c7063968882252db7ed280..1170d71b3900fcd1f981847a667431329b93afa6 100755 (executable)
@@ -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 $?
 
index 8c0cdb16aa2938547d29c2f68e3ec9bd594c8a7e..c71df93d5cd5f88dc5e0c5215f6eaada79641e76 100755 (executable)
@@ -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"