# HG changeset patch # User Matt Mackall # Date 2009-04-23 20:40:10 # Node ID 0c2ba48415c8833523b96a63ca1e560553d2280a # Parent fca54469480e0f496556572579d3d2c5d78b2ec9 test-archive: silence stupid messages from GNU tar Recent versions of GNU tar have apparently decided they're old enough that it's ok for them to prattle on senselessly about things no one cares about without anyone objecting. We object; apply duct tape. diff --git a/tests/test-archive b/tests/test-archive --- a/tests/test-archive +++ b/tests/test-archive @@ -58,8 +58,8 @@ f = urllib2.urlopen('http://127.0.0.1:%s % (os.environ['HGPORT'], node, archive)) sys.stdout.write(f.read()) EOF -http_proxy= python getarchive.py "$TIP" gz | gunzip | tar tf - | sed "s/$QTIP/TIP/" -http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - | sed "s/$QTIP/TIP/" +http_proxy= python getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" +http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" http_proxy= python getarchive.py "$TIP" zip > archive.zip unzip -t archive.zip | sed "s/$QTIP/TIP/" @@ -69,10 +69,10 @@ hg archive -t tar test.tar tar tf test.tar hg archive -t tbz2 -X baz test.tar.bz2 -bunzip2 -dc test.tar.bz2 | tar tf - +bunzip2 -dc test.tar.bz2 | tar tf - 2>/dev/null hg archive -t tgz -p %b-%h test-%h.tar.gz -gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/" +gzip -dc test-$QTIP.tar.gz | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" cat > md5comp.py </dev/null | sed "s/$QTIP/TIP/" hg archive -r 0 -t tar rev-%r.tar if [ -f rev-0.tar ]; then