]> Dogcows Code - chaz/tar/commitdiff
Do not depend on any particular ordering of output.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 3 Sep 2004 09:19:32 +0000 (09:19 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 3 Sep 2004 09:19:32 +0000 (09:19 +0000)
tests/listed02.sh

index f3fc752225e8e21fd81c9a813ee17828ab98d0cd..9345c16440eef1a1662be8b206b4e8833af00e65 100755 (executable)
@@ -69,7 +69,10 @@ rm -rf tart/*
 echo Extracting main archive
 tar -x -v --listed-incremental=tart.incr1 -f archive.1
 echo Extracting incremental archive
-tar -x -v --listed-incremental=tart.incr2 -f archive.2
+# This command should produce three messages about deletion
+# of the existing files, that may appear in any order. Piping
+# to sort makes sure we don't depend on any particular ordering.
+tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort
 
 echo Final files:
 find tart|sort
@@ -120,13 +123,13 @@ tart/c0/cq2
 tart/c1/ca1
 tart/c1/ca2
 Extracting incremental archive
-tart/
-tar: Deleting \`tart/c1'
 tar: Deleting \`tart/a1'
 tar: Deleting \`tart/b1'
+tar: Deleting \`tart/c1'
+tart/
+tart/b2
 tart/c0/
 tart/c2/
-tart/b2
 tart/c2/ca1
 tart/c2/ca2
 tart/c2/ca3
This page took 0.026986 seconds and 4 git commands to generate.