deb_specific__which_silence_warning
authorDebian Python Team <team+python@tracker.debian.org>
Thu, 6 Jan 2022 09:16:00 +0000 (09:16 +0000)
committerJulien Cristau <jcristau@debian.org>
Thu, 6 Jan 2022 09:16:00 +0000 (09:16 +0000)
Gbp-Pq: Name deb_specific__which_silence_warning.patch

tests/test-archive.t
tests/test-convert-cvsnt-mergepoints.t
tests/test-run-tests.t

index 8670c0181ceb7b1289a1364e893e869f03a3f4f6..1fe349fd52480d872520dda22a0dbed04ae58b3a 100644 (file)
@@ -578,7 +578,7 @@ test xz support only available in Python 3.4
 
 #if lzma
   $ hg archive ../archive.txz
-  $ which xz >/dev/null && xz -l ../archive.txz | head -n1 || true
+  $ which xz >/dev/null 2>&1 && xz -l ../archive.txz | head -n1 || true
   Strms  Blocks   Compressed Uncompressed  Ratio  Check   Filename (xz !)
   $ rm -f ../archive.txz
 #endif
index 54416fe4e622394ec3dd7f581114e1a80d2f6ed3..bccf25d5d1a594a565da7a3099d7be8563e7c922 100644 (file)
@@ -102,7 +102,7 @@ return to trunk and merge MYBRANCH1_2
   retrieving revision 1.1.2.2.2.1
   Merging differences between 1.1 and 1.1.2.2.2.1 into foo.txt
   $ cvsci -m "merge2" foo.txt
-  $ REALCVS=`which cvs`
+  $ REALCVS=`which cvs 2>/dev/null`
   $ echo "for x in \$*; do if [ \"\$x\" = \"rlog\" ]; then echo \"RCS file: $CVSROOT/foo/foo.txt,v\"; cat \"$TESTDIR/test-convert-cvsnt-mergepoints.rlog\"; exit 0; fi; done; $REALCVS \$*" > ../cvs
   $ chmod +x ../cvs
   $ PATH=..:${PATH} hg debugcvsps --parents foo
index b4b044ae067ca1803b1e51ef019ea8308448c35c..7f8e0a007939531b38d216d5be7c609fae30e56b 100644 (file)
@@ -21,7 +21,7 @@ Define a helper to avoid the install step
 error paths
 
 #if symlink
-  $ ln -s `which true` hg
+  $ ln -s `which true 2>/dev/null` hg
   $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
   ^warning: --with-hg should specify an hg script, not: (true|coreutils)$ (re)
   running 0 tests using 0 parallel processes