[Git][java-team/ca-certificates-java][stretch] Redirect stderr to stdout in other test

Bastien Roucariès (@rouca) gitlab at salsa.debian.org
Tue Aug 19 00:34:41 BST 2025



Bastien Roucariès pushed to branch stretch at Debian Java Maintainers / ca-certificates-java


Commits:
ce0017eb by Bastien Roucariès at 2025-08-19T01:34:01+02:00
Redirect stderr to stdout in other test

- - - - -


2 changed files:

- debian/tests/can-install-jre
- debian/tests/can-install-multiple-jdks


Changes:

=====================================
debian/tests/can-install-jre
=====================================
@@ -15,7 +15,7 @@ do
     fi
     output=`mktemp`
     echo "installing ${version}"
-    apt-get install -y ${version} | tee ${output}
+    apt-get install -y ${version} 2>&1 | tee ${output}
 # THEN installation is successfull
 # AND certificates are updated
     if [[ $(grep -L "Adding debian:Amazon_Root_CA_1.pem" ${output}) ]]; then


=====================================
debian/tests/can-install-multiple-jdks
=====================================
@@ -8,7 +8,7 @@ jdks=$(apt-cache -n search java-sdk| awk '$1 ~ /-.*-jdk$/ {print $1}')
 
 # WHEN multiple JDKs are installed
 echo "Installing $jdks ..."
-apt-get install -y $jdks | tee ${output}
+apt-get install -y $jdks 2>&1 | tee ${output}
 
 # THEN installation is successful
 if [[ $(grep -L "Adding debian:Amazon_Root_CA_1.pem" ${output}) ]]; then



View it on GitLab: https://salsa.debian.org/java-team/ca-certificates-java/-/commit/ce0017ebdd7882304c390c465a3e9bc757c59994

-- 
View it on GitLab: https://salsa.debian.org/java-team/ca-certificates-java/-/commit/ce0017ebdd7882304c390c465a3e9bc757c59994
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20250818/34492a43/attachment.htm>


More information about the pkg-java-commits mailing list